mirror of
https://github.com/lubosz/overte.git
synced 2025-04-14 09:06:16 +02:00
Report no. of packets dropped in checkForReadyReadBackup()
This commit is contained in:
parent
f445737550
commit
77740f1a63
1 changed files with 3 additions and 0 deletions
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue