Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-12-24 15:20:35 +01:00
Fire ProxyShutdownEvent before closing the scheduler / event bus
Fixes #322
Dieser Commit ist enthalten in:
Ursprung
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) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren