mirror of
https://github.com/PaperMC/Velocity.git
synced 2025-01-06 14:24:41 +08:00
Fire ProxyShutdownEvent before closing the scheduler / event bus
Fixes #322
This commit is contained in:
parent
7fd76962f2
commit
ea52cedfdf
@ -403,6 +403,8 @@ public class VelocityServer implements ProxyServer {
|
||||
timedOut = true;
|
||||
}
|
||||
|
||||
eventManager.fireShutdownEvent();
|
||||
|
||||
timedOut = !eventManager.shutdown() || timedOut;
|
||||
timedOut = !scheduler.shutdown() || timedOut;
|
||||
|
||||
@ -414,8 +416,6 @@ public class VelocityServer implements ProxyServer {
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
|
||||
eventManager.fireShutdownEvent();
|
||||
|
||||
shutdown = true;
|
||||
|
||||
if (explicitExit) {
|
||||
|
Loading…
Reference in New Issue
Block a user