mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
FactorioClient: wait for instance to stop
This commit is contained in:

committed by
Fabian Dill

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):
|
||||||
|
Reference in New Issue
Block a user