summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-01 01:53:14 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:54 +0300
commite536c8ad413cafa4e6c6a81a8f61a3b6c1971a41 (patch)
tree215dff438c447791dde207610189f7dbbc710e83 /src/net
parent7794e6271fea1e0c0af9eacc99603f15a2f8ef79 (diff)
downloadplus-e536c8ad413cafa4e6c6a81a8f61a3b6c1971a41.tar.gz
plus-e536c8ad413cafa4e6c6a81a8f61a3b6c1971a41.tar.bz2
plus-e536c8ad413cafa4e6c6a81a8f61a3b6c1971a41.tar.xz
plus-e536c8ad413cafa4e6c6a81a8f61a3b6c1971a41.zip
use pauseDispatch in processMapLogin.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/gamehandler.cpp3
-rw-r--r--src/net/tmwa/gamehandler.cpp3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/net/eathena/gamehandler.cpp b/src/net/eathena/gamehandler.cpp
index b26fa6159..f7d582760 100644
--- a/src/net/eathena/gamehandler.cpp
+++ b/src/net/eathena/gamehandler.cpp
@@ -192,6 +192,9 @@ void GameHandler::processMapLogin(Net::MessageIn &msg) const
mLastHost &= 0xffffff;
+ if (mNetwork)
+ mNetwork->pauseDispatch();
+
// Switch now or we'll have problems
client->setState(STATE_GAME);
if (localPlayer)
diff --git a/src/net/tmwa/gamehandler.cpp b/src/net/tmwa/gamehandler.cpp
index e74315b44..ae60a0874 100644
--- a/src/net/tmwa/gamehandler.cpp
+++ b/src/net/tmwa/gamehandler.cpp
@@ -183,6 +183,9 @@ void GameHandler::processMapLogin(Net::MessageIn &msg) const
mLastHost &= 0xffffff;
+ if (mNetwork)
+ mNetwork->pauseDispatch();
+
// Switch now or we'll have problems
client->setState(STATE_GAME);
if (localPlayer)