mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-22 00:13:12 +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";
|
this._state = "stopping";
|
||||||
if (this._rconClient) {
|
if (this._rconClient) {
|
||||||
await this._rconClient.end();
|
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
|
// On linux this sends SIGTERM to the process. On windows this
|
||||||
|
|||||||
+1
-1
@@ -58,7 +58,7 @@
|
|||||||
"node-factorio-api": "^0.3.8",
|
"node-factorio-api": "^0.3.8",
|
||||||
"node-forge": "^0.7.1",
|
"node-forge": "^0.7.1",
|
||||||
"prom-client": "^10.2.3",
|
"prom-client": "^10.2.3",
|
||||||
"rcon-client": "^4.0.4",
|
"rcon-client": "^4.2.0",
|
||||||
"request": "^2.83.0",
|
"request": "^2.83.0",
|
||||||
"sanitizer": "^0.1.3",
|
"sanitizer": "^0.1.3",
|
||||||
"simple-git": "^1.96.0",
|
"simple-git": "^1.96.0",
|
||||||
|
|||||||
Reference in new issue
Block a user