summaryrefslogtreecommitdiff
path: root/src/net/eathena/network.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-01 01:40:45 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:54 +0300
commit7794e6271fea1e0c0af9eacc99603f15a2f8ef79 (patch)
tree084996965982a65bbac403bc13c874cb98855b99 /src/net/eathena/network.cpp
parent18ff3c4430f6dfad38cf2da7c417315eba53a0fc (diff)
downloadmv-7794e6271fea1e0c0af9eacc99603f15a2f8ef79.tar.gz
mv-7794e6271fea1e0c0af9eacc99603f15a2f8ef79.tar.bz2
mv-7794e6271fea1e0c0af9eacc99603f15a2f8ef79.tar.xz
mv-7794e6271fea1e0c0af9eacc99603f15a2f8ef79.zip
add ability to delay network messages dispatch.
Diffstat (limited to 'src/net/eathena/network.cpp')
-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;
}
}