13
0
geforkt von Mirrors/Velocity

Ensure synchronous shutdown if the user kills the process.

Dieser Commit ist enthalten in:
Andrew Steinborn 2020-10-02 00:23:01 -04:00
Ursprung 65cab85b50
Commit cb74210cd8

Datei anzeigen

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