13
0

Enable command execution, force destruction
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Lixfel 2022-03-17 14:40:43 +01:00
Ursprung 4f102cd5a6
Commit e9906c942d

Datei anzeigen

@ -130,11 +130,15 @@ public class Subserver implements Runnable {
}
}
public void execute(String command) {
writer.println(command);
}
public void stop(){
writer.println("stop");
execute("stop");
try {
if(!process.waitFor(1, TimeUnit.MINUTES))
process.destroy();
process.destroyForcibly();
thread.join();
}catch(InterruptedException e){
logger.log(Level.SEVERE, "Subserver stop interrupted!", e);