diff options
| author | Fabio Alessandrelli | 2017-05-05 17:41:11 +0200 |
|---|---|---|
| committer | Fabio Alessandrelli | 2017-05-05 17:41:11 +0200 |
| commit | 5c6715a291e0e843b56f0a168191b3d89657d43f (patch) | |
| tree | bf02135ee499698df825d84818f6f1c1e3282bc5 /drivers/unix/packet_peer_udp_posix.cpp | |
| parent | 6034eae95ebd0b9c82b4ae33353938dde6732618 (diff) | |
| download | godot-5c6715a291e0e843b56f0a168191b3d89657d43f.tar.gz godot-5c6715a291e0e843b56f0a168191b3d89657d43f.tar.zst godot-5c6715a291e0e843b56f0a168191b3d89657d43f.zip | |
Diffstat (limited to 'drivers/unix/packet_peer_udp_posix.cpp')
| -rw-r--r-- | drivers/unix/packet_peer_udp_posix.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/unix/packet_peer_udp_posix.cpp b/drivers/unix/packet_peer_udp_posix.cpp index 5dbccd4b6..74ceb3946 100644 --- a/drivers/unix/packet_peer_udp_posix.cpp +++ b/drivers/unix/packet_peer_udp_posix.cpp @@ -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? |
