Fix potential crash if the remote client is not available any more

This commit is contained in:
Simon Stürz 2022-04-28 10:26:26 +02:00
parent 8f8e660eb9
commit 7e53286538

View File

@ -300,6 +300,10 @@ void ProxyServer::onClientDataAvailable(const QUuid &clientId, const QByteArray
// Calculate server statisitcs
m_troughputCounter += data.count();
proxyClient->addRxDataCount(data.count());
if (!remoteClient)
return;
remoteClient->addTxDataCount(data.count());
m_totalTraffic += data.count();