potential fix for rcon timing issue

This commit is contained in:
Fabian Dill 2021-05-18 20:45:56 +02:00
parent b43e4fae86
commit a656ad5cd2
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ async def factorio_server_watcher(ctx: FactorioContext):
while not factorio_queue.empty():
msg = factorio_queue.get()
factorio_server_logger.info(msg)
if not ctx.rcon_client and "Hosting game at IP ADDR:" in msg:
if not ctx.rcon_client and "Starting RCON interface at IP ADDR:" in msg:
ctx.rcon_client = factorio_rcon.RCONClient("localhost", rcon_port, rcon_password)
# trigger lua interface confirmation
ctx.rcon_client.send_command("/sc game.print('Starting Archipelago Bridge')")