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:
Hornwitser committed 2019-10-28 21:54:19 +01:00
1 parent f163e6a39b
commit 9082b40abd
2 files changed
+1 -10

No files matched your search

-9
View File
@@ -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