summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-06-28 20:19:05 +0300
committerAndrei Karas <akaras@inbox.ru>2013-06-28 20:19:05 +0300
commit524b776f44b7628d95d772289f31fab890ceefc3 (patch)
treef589ef0183ca8f32238701ff8030a0f8342c9093 /src/client.cpp
parent29099e5159ff042b1039ca2382c478b3f8016c1b (diff)
downloadplus-524b776f44b7628d95d772289f31fab890ceefc3.tar.gz
plus-524b776f44b7628d95d772289f31fab890ceefc3.tar.bz2
plus-524b776f44b7628d95d772289f31fab890ceefc3.tar.xz
plus-524b776f44b7628d95d772289f31fab890ceefc3.zip
Fix "switch login" button in char selection dialog.
Diffstat (limited to 'src/client.cpp')
-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")