mirror of
https://github.com/ME1312/SubServers-2.git
synced 2024-11-25 11:46:50 +01:00
Fix the state of CTRL+C shutdowns
This commit is contained in:
parent
cb6d30c882
commit
d8463e25c5
@ -557,7 +557,10 @@ public final class SubProxy extends BungeeCommon implements Listener {
|
|||||||
}
|
}
|
||||||
ukeys.clear();
|
ukeys.clear();
|
||||||
|
|
||||||
if (!posted) Runtime.getRuntime().addShutdownHook(new Thread(this::shutdown, "SubServers.Bungee::System_Shutdown"));
|
if (!posted) Runtime.getRuntime().addShutdownHook(new Thread(() -> {
|
||||||
|
shutdown = true;
|
||||||
|
shutdown();
|
||||||
|
}, "SubServers.Bungee::System_Shutdown"));
|
||||||
running = ready = true;
|
running = ready = true;
|
||||||
legServers.clear();
|
legServers.clear();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user