Report no. of packets dropped in checkForReadyReadBackup()

This commit is contained in:
Simon Walton 2019-08-08 09:57:00 -07:00
parent f445737550
commit 77740f1a63

View file

@ -337,9 +337,12 @@ void Socket::checkForReadyReadBackup() {
// drop all of the pending datagrams on the floor
int droppedCount = 0;
while (_udpSocket.hasPendingDatagrams()) {
_udpSocket.readDatagram(nullptr, 0);
++droppedCount;
}
qCDebug(networking) << "Flushed" << droppedCount << "Packets";
}
}