Fix UDP wait() not returning after first received packet
This commit is contained in:
parent
6034eae95e
commit
5c6715a291
|
@ -216,6 +216,8 @@ Error PacketPeerUDPPosix::_poll(bool p_wait) {
|
|||
|
||||
len = sizeof(struct sockaddr_storage);
|
||||
++queue_count;
|
||||
if (p_wait)
|
||||
break;
|
||||
};
|
||||
|
||||
// TODO: Should ECONNRESET be handled here?
|
||||
|
|
|
@ -203,6 +203,8 @@ Error PacketPeerUDPWinsock::_poll(bool p_wait) {
|
|||
|
||||
len = sizeof(struct sockaddr_storage);
|
||||
++queue_count;
|
||||
if (p_wait)
|
||||
break;
|
||||
};
|
||||
|
||||
if (ret == SOCKET_ERROR) {
|
||||
|
|
Loading…
Reference in New Issue