diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2017-05-05 17:41:11 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2017-05-05 17:41:11 +0200 |
commit | 5c6715a291e0e843b56f0a168191b3d89657d43f (patch) | |
tree | bf02135ee499698df825d84818f6f1c1e3282bc5 /platform/windows/packet_peer_udp_winsock.cpp | |
parent | 6034eae95ebd0b9c82b4ae33353938dde6732618 (diff) |
Fix UDP wait() not returning after first received packet
Diffstat (limited to 'platform/windows/packet_peer_udp_winsock.cpp')
-rw-r--r-- | platform/windows/packet_peer_udp_winsock.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/windows/packet_peer_udp_winsock.cpp b/platform/windows/packet_peer_udp_winsock.cpp index f69c0bd2ed..f3b91c1b56 100644 --- a/platform/windows/packet_peer_udp_winsock.cpp +++ b/platform/windows/packet_peer_udp_winsock.cpp @@ -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) { |