13
0

Hotfix stop after 5min

Dieser Commit ist enthalten in:
Lixfel 2021-04-03 10:23:38 +02:00
Ursprung e120bb1ce1
Commit a92642e612

Datei anzeigen

@ -132,8 +132,9 @@ public class Subserver implements Runnable {
public void waitForTermination(){ public void waitForTermination(){
try { try {
if(!process.waitFor(5, TimeUnit.MINUTES)) if(!process.waitFor(5, TimeUnit.MINUTES) && server.getPlayers().isEmpty()){
process.destroy(); process.destroy();
}
}catch(InterruptedException e){ }catch(InterruptedException e){
logger.log(Level.SEVERE, "Subserver stop interrupted!", e); logger.log(Level.SEVERE, "Subserver stop interrupted!", e);
Thread.currentThread().interrupt(); Thread.currentThread().interrupt();