mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 07:04:52 +09:00
stop() waits for the rcon-ready event when RCON has not connected yet, but nothing emits it once the process is gone, so the promise never settles and the stop request stays pending until the session closes. Wait for exit as well and drop the other listener when either fires. Repro: send InstanceExportDataRequest to a stopped instance, then InstanceStopRequest while the status is exporting_data. Instance.stop() sees the server as running and calls server.stop(), then exportData kills the process before RCON is up. The export finishes and the instance reports stopped, but the stop request never gets a response. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>