mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 07:04:52 +09:00
Waiting for exit alongside rcon-ready made sendRcon reject with the flat "RCON connection lost" for every case, including the unexpected exits that used to reject with the EnvironmentError saying why the server went away, as events.once rejects on error events. Have the paired wait capture the error emitted with the exit and hand it back, so sendRcon throws that when there is one and falls through to the old message when there is not, which is the kill path where no error is emitted. stop() ignores the error as its job is done once the process is gone. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>