FactorioClient: wait for instance to stop
This commit is contained in:
parent
75bf595f86
commit
8a1ac566c8
|
@ -303,6 +303,7 @@ async def factorio_server_watcher(ctx: FactorioContext):
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
factorio_process.terminate()
|
factorio_process.terminate()
|
||||||
|
factorio_process.wait(5)
|
||||||
|
|
||||||
|
|
||||||
def get_info(ctx, rcon_client):
|
def get_info(ctx, rcon_client):
|
||||||
|
@ -350,6 +351,7 @@ async def factorio_spinup_server(ctx: FactorioContext):
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
factorio_process.terminate()
|
factorio_process.terminate()
|
||||||
|
factorio_process.wait(5)
|
||||||
|
|
||||||
|
|
||||||
async def main(args):
|
async def main(args):
|
||||||
|
|
Loading…
Reference in New Issue