diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/net/manaserv/network.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/net/manaserv/network.cpp b/src/net/manaserv/network.cpp index 5bf411cb..ddadc007 100644 --- a/src/net/manaserv/network.cpp +++ b/src/net/manaserv/network.cpp @@ -142,8 +142,8 @@ void flush() { ENetEvent event; - // Wait up to 10 milliseconds for an event. - while (enet_host_service(client, &event, 10) > 0) + // Check if there are any new events + while (enet_host_service(client, &event, 0) > 0) { switch (event.type) { @@ -164,11 +164,7 @@ void flush() break; case ENET_EVENT_TYPE_NONE: - logger->log("No event during 10 milliseconds."); - break; - default: - logger->log("Unhandled enet event."); break; } } |