diff options
Diffstat (limited to 'src/net/manaserv/generalhandler.cpp')
-rw-r--r-- | src/net/manaserv/generalhandler.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/net/manaserv/generalhandler.cpp b/src/net/manaserv/generalhandler.cpp index 2f4ad4a0..66929ef6 100644 --- a/src/net/manaserv/generalhandler.cpp +++ b/src/net/manaserv/generalhandler.cpp @@ -57,6 +57,8 @@ Net::GeneralHandler *generalHandler = NULL; +extern ManaServ::LoginHandler *loginHandler; + namespace ManaServ { Connection *accountServerConnection = 0; @@ -146,6 +148,13 @@ void GeneralHandler::unload() void GeneralHandler::flushNetwork() { flush(); + + if (state == STATE_SWITCH_CHARACTER && + Net::getLoginHandler()->isConnected()) + { + loginHandler->reconnect(); + state = STATE_GET_CHARACTERS; + } } bool GeneralHandler::isNetworkConnected() |