SteamWar/BauSystem
Archiviert
13
0

Simplify build.gradle

Dieser Commit ist enthalten in:
yoyosource 2021-04-12 11:32:06 +02:00
Ursprung 36a2c0442d
Commit a6ad9bd63a

Datei anzeigen

@ -183,19 +183,16 @@ def serverStart(String serverName) {
writer = proc.getOutputStream().newWriter()
writer.write("stop\n")
writer.flush()
while (proc.alive) {
Thread.sleep(10)
}
proc.closeStreams()
outputThread.interrupt()
inputThread.interrupt()
awaitClose(proc, outputThread, inputThread)
}
awaitClose(proc, outputThread, inputThread)
}
private static def awaitClose(Process proc, Thread outputThread, Thread inputThread) {
while (proc.alive) {
Thread.sleep(10)
}
proc.closeStreams()
outputThread.interrupt()
inputThread.interrupt()
}