1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-08-13 16:53:51 -04:00

Reinsert System.exit after clean shutdown to make sure we do exit

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@575 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-05-20 10:36:08 +00:00
parent 87a979e4e0
commit 089f3fca33
3 changed files with 7 additions and 0 deletions

View File

@ -197,6 +197,8 @@ public class AwtGatewayTray implements DavGatewayTrayInterface {
if (logBrokerMonitor != null) { if (logBrokerMonitor != null) {
logBrokerMonitor.dispose(); logBrokerMonitor.dispose();
} }
// make sure we do exit
System.exit(0);
} }
}; };
// create menu item for the exit action // create menu item for the exit action

View File

@ -184,6 +184,8 @@ public class FrameGatewayTray implements DavGatewayTrayInterface {
if (logBrokerMonitor != null) { if (logBrokerMonitor != null) {
logBrokerMonitor.dispose(); logBrokerMonitor.dispose();
} }
// make sure we do exit
System.exit(0);
} }
}; };
// create menu item for the exit action // create menu item for the exit action

View File

@ -266,6 +266,7 @@ public class SwtGatewayTray implements DavGatewayTrayInterface {
if (trayItem != null) { if (trayItem != null) {
trayItem.dispose(); trayItem.dispose();
trayItem = null;
} }
if (image != null) { if (image != null) {
@ -281,6 +282,8 @@ public class SwtGatewayTray implements DavGatewayTrayInterface {
if (logBrokerMonitor != null) { if (logBrokerMonitor != null) {
logBrokerMonitor.dispose(); logBrokerMonitor.dispose();
} }
// make sure we do exit
System.exit(0);
} }
} }
}.start(); }.start();