diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-14 00:23:13 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-14 00:23:13 +0200 |
commit | ec8f340ce6b16b92a450bb6fcdb4ebd40b54f669 (patch) | |
tree | fc7d557e191fbb6ac400534bb7d360d1e8021cc5 | |
parent | 453b42fb59fccf593f88959a9402b4fa96bf219f (diff) | |
download | mana-ec8f340ce6b16b92a450bb6fcdb4ebd40b54f669.tar.gz mana-ec8f340ce6b16b92a450bb6fcdb4ebd40b54f669.tar.bz2 mana-ec8f340ce6b16b92a450bb6fcdb4ebd40b54f669.tar.xz mana-ec8f340ce6b16b92a450bb6fcdb4ebd40b54f669.zip |
Fixed handling of messages after a failed login
When entering the error state, the handlers were unregistered, but they
were never registered again. I'm just removing the unregistration for
now.
-rw-r--r-- | src/main.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index 2d5899f0..40b30899 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -734,7 +734,6 @@ static void accountLogin(Network *network, LoginData *loginData) logger->log("Username is %s", loginData->username.c_str()); #ifdef EATHENA_SUPPORT network->connect(loginData->hostname, loginData->port); - // network->registerHandler(&loginHandler); #endif #ifdef TMWSERV_SUPPORT @@ -774,7 +773,6 @@ static void charLogin(Network *network, LoginData *loginData) { logger->log("Trying to connect to char server..."); network->connect(loginData->hostname, loginData->port); - // network->registerHandler(&charServerHandler); Net::getCharHandler()->setCharInfo(&charInfo); // Send login infos @@ -1505,7 +1503,6 @@ int main(int argc, char *argv[]) currentDialog->addActionListener(&errorListener); currentDialog = NULL; // OkDialog deletes itself network->disconnect(); - network->clearHandlers(); break; case STATE_CONNECTING: |