Ensure synchronous shutdown if the user kills the process.

This commit is contained in:
Andrew Steinborn
2020-10-02 00:23:01 -04:00
parent 65cab85b50
commit cb74210cd8

View File

@@ -456,8 +456,12 @@ public class VelocityServer implements ProxyServer, ForwardingAudience {
} }
}; };
Thread thread = new Thread(shutdownProcess); if (explicitExit) {
thread.start(); Thread thread = new Thread(shutdownProcess);
thread.start();
} else {
shutdownProcess.run();
}
} }
/** /**