Fix potential crash if the remote client is not available any more
This commit is contained in:
parent
8f8e660eb9
commit
7e53286538
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user