Revert change to packet reading in Socket.cpp

This commit is contained in:
Ryan Huffman 2018-02-26 14:43:50 -08:00
parent cd9cdea3e8
commit 65a4b3d316

View file

@ -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();