summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/network.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/eathena/network.cpp b/src/net/eathena/network.cpp
index fe13b2f86..2b716c2f8 100644
--- a/src/net/eathena/network.cpp
+++ b/src/net/eathena/network.cpp
@@ -92,6 +92,7 @@ void Network::clearHandlers()
void Network::dispatchMessages()
{
+ mPauseDispatch = false;
while (messageReady())
{
SDL_mutexP(mMutexIn);
@@ -132,6 +133,8 @@ void Network::dispatchMessages()
}
skip(len);
+ if (mPauseDispatch)
+ break;
}
}