mirror of
https://github.com/lubosz/overte.git
synced 2025-04-19 16:44:04 +02:00
Revert change to packet reading in Socket.cpp
This commit is contained in:
parent
cd9cdea3e8
commit
65a4b3d316
1 changed files with 1 additions and 1 deletions
|
@ -328,7 +328,7 @@ void Socket::checkForReadyReadBackup() {
|
|||
void Socket::readPendingDatagrams() {
|
||||
int packetSizeWithHeader = -1;
|
||||
|
||||
while ((packetSizeWithHeader = _udpSocket.pendingDatagramSize()) > 0) {
|
||||
while ((packetSizeWithHeader = _udpSocket.pendingDatagramSize()) != -1) {
|
||||
|
||||
// we're reading a packet so re-start the readyRead backup timer
|
||||
_readyReadBackupTimer->start();
|
||||
|
|
Loading…
Reference in a new issue