mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-17 07:30:41 +09:00
Update rcon-client
Update rcon-client to 4.2.0 in order to remove workaround for issue with rcon-client 4.1.0 that has been resolved.
This commit is contained in:
1 parent
f163e6a39b
commit
9082b40abd
2 files changed
+1
-10
No files matched your search
@@ -621,15 +621,6 @@ class FactorioServer extends events.EventEmitter {
|
||||
this._state = "stopping";
|
||||
if (this._rconClient) {
|
||||
await this._rconClient.end();
|
||||
|
||||
// Unfortunately version 4.1.0 of rcon-client doesn't send an
|
||||
// end event on .end() and causes an error if the close operation
|
||||
// fails. Wait a bit here to ensure it's closed before killing
|
||||
// Factorio. This is only an issue on Windows where Factorio is
|
||||
// terminated without cleanup.
|
||||
await new Promise((resolve, reject) => {
|
||||
setTimeout(resolve, 100);
|
||||
});
|
||||
}
|
||||
|
||||
// On linux this sends SIGTERM to the process. On windows this
|
||||
|
||||
Reference in new issue
Block a user