From bb078a181535bea23d8ca4f04ea66c98fc6e3403 Mon Sep 17 00:00:00 2001 From: Bertram Date: Wed, 23 Sep 2009 01:16:06 +0200 Subject: Made the TMWserv client handles the FORCE_QUIT connection state. I was getting fed up with killing the TMWserv client in order to quit it. The two cases left before having a full working set, is to handle correctly Switch Character and Switch Server in QuitDialog which must have been broken during the clients merge. --- src/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 49444d17..29a1c132 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1334,6 +1334,13 @@ int main(int argc, char *argv[]) case STATE_WAIT: break; + case STATE_FORCE_QUIT: + logger->log("State: FORCE_QUIT"); + state = STATE_EXIT; + logoutThenExit(); + Net::getGeneralHandler()->unload(); + break; + default: state = STATE_FORCE_QUIT; break; -- cgit v1.2.3-70-g09d2