summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMax Hilbrunner <mhilbrunner@users.noreply.github.com>2018-09-25 19:15:48 +0200
committerGitHub <noreply@github.com>2018-09-25 19:15:48 +0200
commitefb730d950ebcf0d08da7ea600d4930906e43c57 (patch)
treebd7736f9064aeb517ef921498eb94414f7e60a14 /modules
parent2005b0c820bac050e48c59f986e8e9fd3d7dce77 (diff)
parent977c9477c1d5868eef8a38603e6f394e02f0e98b (diff)
Merge pull request #22425 from Faless/enet_service
Set ENet service time to 0.
Diffstat (limited to 'modules')
-rw-r--r--modules/enet/networked_multiplayer_enet.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/enet/networked_multiplayer_enet.cpp b/modules/enet/networked_multiplayer_enet.cpp
index 0a1061f92e..2d318cdf69 100644
--- a/modules/enet/networked_multiplayer_enet.cpp
+++ b/modules/enet/networked_multiplayer_enet.cpp
@@ -207,13 +207,13 @@ void NetworkedMultiplayerENet::poll() {
_pop_current_packet();
ENetEvent event;
- /* Wait up to 1000 milliseconds for an event. */
+ /* Keep servicing until there are no available events left in queue. */
while (true) {
if (!host || !active) // Might have been disconnected while emitting a notification
return;
- int ret = enet_host_service(host, &event, 1);
+ int ret = enet_host_service(host, &event, 0);
if (ret < 0) {
// Error, do something?