Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
Merge pull request #323 from lucko/fix/shutdown-event-order
Fire ProxyShutdownEvent before closing the scheduler / event bus
Dieser Commit ist enthalten in:
Commit
5bea13c74e
@ -409,6 +409,8 @@ public class VelocityServer implements ProxyServer {
|
||||
timedOut = true;
|
||||
}
|
||||
|
||||
eventManager.fireShutdownEvent();
|
||||
|
||||
timedOut = !eventManager.shutdown() || timedOut;
|
||||
timedOut = !scheduler.shutdown() || timedOut;
|
||||
|
||||
@ -420,8 +422,6 @@ public class VelocityServer implements ProxyServer {
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
|
||||
eventManager.fireShutdownEvent();
|
||||
|
||||
shutdown = true;
|
||||
|
||||
if (explicitExit) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren