mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
pull all available datagrams in Application processDatagrams
This commit is contained in:
parent
3ab7a6d9d5
commit
cbcdeb570b
1 changed files with 1 additions and 1 deletions
|
@ -4263,7 +4263,7 @@ void Application::processDatagrams() {
|
|||
HifiSockAddr senderSockAddr;
|
||||
ssize_t bytesReceived;
|
||||
|
||||
if (NodeList::getInstance()->getNodeSocket().hasPendingDatagrams() &&
|
||||
while (NodeList::getInstance()->getNodeSocket().hasPendingDatagrams() &&
|
||||
(bytesReceived = NodeList::getInstance()->getNodeSocket().readDatagram((char*) _incomingPacket,
|
||||
MAX_PACKET_SIZE,
|
||||
senderSockAddr.getAddressPointer(),
|
||||
|
|
Loading…
Reference in a new issue