Fire ProxyShutdownEvent before closing the scheduler / event bus
Fixes #322
This commit is contained in:
@@ -403,6 +403,8 @@ public class VelocityServer implements ProxyServer {
|
|||||||
timedOut = true;
|
timedOut = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
eventManager.fireShutdownEvent();
|
||||||
|
|
||||||
timedOut = !eventManager.shutdown() || timedOut;
|
timedOut = !eventManager.shutdown() || timedOut;
|
||||||
timedOut = !scheduler.shutdown() || timedOut;
|
timedOut = !scheduler.shutdown() || timedOut;
|
||||||
|
|
||||||
@@ -414,8 +416,6 @@ public class VelocityServer implements ProxyServer {
|
|||||||
Thread.currentThread().interrupt();
|
Thread.currentThread().interrupt();
|
||||||
}
|
}
|
||||||
|
|
||||||
eventManager.fireShutdownEvent();
|
|
||||||
|
|
||||||
shutdown = true;
|
shutdown = true;
|
||||||
|
|
||||||
if (explicitExit) {
|
if (explicitExit) {
|
||||||
|
Reference in New Issue
Block a user