Catch error on SWT exit

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@935 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-02-01 22:53:15 +00:00
parent f88bd875e6
commit b2b84b7285
1 changed files with 7 additions and 1 deletions

View File

@ -322,7 +322,13 @@ public class SwtGatewayTray implements DavGatewayTrayInterface {
if (image2 != null) {
image2.dispose();
}
display.dispose();
try {
if (!display.isDisposed()) {
display.dispose();
}
} catch (Exception e) {
// already disposed
}
// dispose AWT frames
settingsFrame.dispose();
aboutFrame.dispose();