Now close the keepalive thread for macosx when removing the system tray

This commit is contained in:
nathan 2018-11-10 11:34:19 +01:00
parent 8c8ccd9312
commit 4a6881df4a

View File

@ -230,6 +230,13 @@ class _AwtTray extends Tray {
}); });
super.remove(); super.remove();
// make sure this thread doesn't keep the JVM alive anymore
if (keepAliveThread != null) {
synchronized (keepAliveLock) {
keepAliveLock.notifyAll();
}
}
} }
}; };