ClientGUI: exitCleanly() when Login dialog is cancelled/closed
authorEddie <dev@fun2be.me>
Mon, 8 Jun 2015 04:44:58 +0000 (05:44 +0100)
committerEddie <dev@fun2be.me>
Mon, 8 Jun 2015 04:44:58 +0000 (05:44 +0100)
src/uk/ac/ntu/n0521366/wsyd/client/ClientGUI.java

index 1ede938..c393d6c 100644 (file)
@@ -586,6 +586,7 @@ public class ClientGUI extends javax.swing.JFrame implements NetworkMessageEvent
         if (_tcpStreamManager != null)
             _tcpStreamManager.closeAll();
 
+        logp(Level.SEVERE, "Exiting");
         this.dispatchEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING));
     }
 
@@ -674,7 +675,7 @@ public class ClientGUI extends javax.swing.JFrame implements NetworkMessageEvent
 
     public void loginAbort()
     {
-        this.dispose();
+        exitCleanly();
     }
 
     public boolean validateLogin(String uName, String pWord)