Skip to content

Commit

Permalink
Fix the state of CTRL+C shutdowns
Browse files Browse the repository at this point in the history
  • Loading branch information
ME1312 committed Nov 13, 2022
1 parent cb6d30c commit d8463e2
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -557,7 +557,10 @@ public void reload() throws IOException {
}
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;
legServers.clear();

Expand Down

0 comments on commit d8463e2

Please sign in to comment.