Hotfix stop after 5min
Dieser Commit ist enthalten in:
Ursprung
e120bb1ce1
Commit
a92642e612
@ -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();
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren