Now close the keepalive thread for macosx when removing the system tray
This commit is contained in:
parent
8c8ccd9312
commit
4a6881df4a
@ -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();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user