SteamWar/BungeeCore
Archiviert
13
2

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