mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 23:04:52 +09:00
If the server decides to exit on its own during the stop operation to the FactorioServer class after the operation has started but before the signal is sent to the process then the exit handler will have wiped the server child process and cause the kill call to fail. This in turn would let the hang timer running which would bring down the Node.js process due to an unhandled error for the same reason. Fix by making sure the stop operation watches for the server exiting and returning early if the server already quit before getting to the send stop signal part.