unregister upon exit, no matter how

git-svn-id: svn://anubis/gvsu@148 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
josh 2008-09-18 01:03:30 +00:00
parent 12d4dbec2d
commit 15a6beadfb

View File

@ -247,7 +247,6 @@ public class ChatClient
} }
else if (command.equals("exit")) else if (command.equals("exit"))
{ {
unregister();
myListenThread.interrupt(); myListenThread.interrupt();
break; break;
} }
@ -261,6 +260,7 @@ public class ChatClient
{ {
e.printStackTrace(); e.printStackTrace();
} }
unregister();
System.exit(0); System.exit(0);
} }