FactorioClient: wait for instance to stop

This commit is contained in:
black-sliver 2021-07-21 23:32:28 +02:00 committed by Fabian Dill
parent 75bf595f86
commit 8a1ac566c8
1 changed files with 2 additions and 0 deletions

View File

@ -303,6 +303,7 @@ async def factorio_server_watcher(ctx: FactorioContext):
finally:
factorio_process.terminate()
factorio_process.wait(5)
def get_info(ctx, rcon_client):
@ -350,6 +351,7 @@ async def factorio_spinup_server(ctx: FactorioContext):
finally:
factorio_process.terminate()
factorio_process.wait(5)
async def main(args):