You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Fix UDP wait() not returning after first received packet
(cherry picked from commit 5c6715a291)
This commit is contained in:
@@ -216,6 +216,8 @@ Error PacketPeerUDPPosix::_poll(bool p_wait) {
|
|||||||
|
|
||||||
len = sizeof(struct sockaddr_storage);
|
len = sizeof(struct sockaddr_storage);
|
||||||
++queue_count;
|
++queue_count;
|
||||||
|
if (p_wait)
|
||||||
|
break;
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO: Should ECONNRESET be handled here?
|
// TODO: Should ECONNRESET be handled here?
|
||||||
|
|||||||
@@ -203,6 +203,8 @@ Error PacketPeerUDPWinsock::_poll(bool p_wait) {
|
|||||||
|
|
||||||
len = sizeof(struct sockaddr_storage);
|
len = sizeof(struct sockaddr_storage);
|
||||||
++queue_count;
|
++queue_count;
|
||||||
|
if (p_wait)
|
||||||
|
break;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (ret == SOCKET_ERROR) {
|
if (ret == SOCKET_ERROR) {
|
||||||
|
|||||||
Reference in New Issue
Block a user