From e536c8ad413cafa4e6c6a81a8f61a3b6c1971a41 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 1 Sep 2014 01:53:14 +0300 Subject: use pauseDispatch in processMapLogin. --- src/net/eathena/gamehandler.cpp | 3 +++ src/net/tmwa/gamehandler.cpp | 3 +++ 2 files changed, 6 insertions(+) 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) -- cgit v1.2.3-70-g09d2