Skip to content

Commit

Permalink
FactorioClient: wait for instance to stop
Browse files Browse the repository at this point in the history
  • Loading branch information
black-sliver authored and Berserker66 committed Jul 21, 2021
1 parent 75bf595 commit 8a1ac56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions FactorioClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -350,6 +351,7 @@ async def factorio_spinup_server(ctx: FactorioContext):

finally:
factorio_process.terminate()
factorio_process.wait(5)


async def main(args):
Expand Down

0 comments on commit 8a1ac56

Please sign in to comment.