mirror of https://github.com/zlatinb/muwire
do not shutdown core on awt thread
parent
ffde6ac86f
commit
d4eaa0df8d
|
@ -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()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue