Archiviert
1
0

Hotfix waiting for world deletion

Dieser Commit ist enthalten in:
Lixfel 2020-01-20 18:34:10 +01:00
Ursprung a9cd5e1288
Commit 8ff9ca5fd3

Datei anzeigen

@ -116,8 +116,8 @@ public class SubserverSystem {
if(eventFightID == -1)
return new Bauserver(serverName, player1, port, process, () -> {
try {
new ProcessBuilder("rm", "-r", ARENA_PATH + finalMapName).start();
} catch (IOException e) {
new ProcessBuilder("rm", "-r", ARENA_PATH + finalMapName).start().waitFor();
} catch (IOException | InterruptedException e) {
throw new SecurityException("Could not clean up folder", e);
}
});
@ -127,8 +127,8 @@ public class SubserverSystem {
return;
try {
new ProcessBuilder("rm", "-r", ARENA_PATH + finalMapName).start();
} catch (IOException e) {
new ProcessBuilder("rm", "-r", ARENA_PATH + finalMapName).start().waitFor();
} catch (IOException | InterruptedException e) {
throw new SecurityException("Could not clean up folder", e);
}
});