do not shutdown core on awt thread

pull/24/head
Zlatin Balevsky 2019-10-22 23:37:44 +01:00
parent ffde6ac86f
commit d4eaa0df8d
1 changed files with 4 additions and 2 deletions

View File

@ -20,7 +20,9 @@ class Shutdown extends AbstractLifecycleHandler {
void execute() { void execute() {
log.info("shutting down") log.info("shutting down")
Core core = application.context.get("core") Core core = application.context.get("core")
if (core != null) if (core != null) {
core.shutdown() Thread t = new Thread({ core.shutdown() } as Runnable)
t.start()
}
} }
} }