summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index bc470fe1d..d1dfadb92 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1724,6 +1724,9 @@ int Client::gameExec()
logger->log1("State: SWITCH LOGIN");
Net::getLoginHandler()->logout();
+ Net::getLoginHandler()->disconnect();
+ Net::getGameHandler()->disconnect();
+ Net::getLoginHandler()->connect();
mState = STATE_LOGIN;
BLOCK_END("Client::gameExec STATE_SWITCH_LOGIN")