From 5c6715a291e0e843b56f0a168191b3d89657d43f Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Fri, 5 May 2017 17:41:11 +0200 Subject: Fix UDP wait() not returning after first received packet --- platform/windows/packet_peer_udp_winsock.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'platform/windows/packet_peer_udp_winsock.cpp') 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) { -- cgit v1.2.3