mirror of
https://github.com/PaperMC/Velocity.git
synced 2025-02-23 15:49:19 +08:00
Ensure synchronous shutdown if the user kills the process.
This commit is contained in:
parent
65cab85b50
commit
cb74210cd8
@ -456,8 +456,12 @@ public class VelocityServer implements ProxyServer, ForwardingAudience {
|
||||
}
|
||||
};
|
||||
|
||||
Thread thread = new Thread(shutdownProcess);
|
||||
thread.start();
|
||||
if (explicitExit) {
|
||||
Thread thread = new Thread(shutdownProcess);
|
||||
thread.start();
|
||||
} else {
|
||||
shutdownProcess.run();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user