mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-25 00:23:12 +09:00
Fix error on slave reconnect of stale connection
Remove call to removed function setTimeout on connector that was left over from the connector refactor.
This commit is contained in:
1 parent
d99e160a27
commit
642504874b
1 file changed
-1
@@ -266,7 +266,6 @@ ${err.stack}`
|
|||||||
let connection = this.slaveConnections.get(data.id);
|
let connection = this.slaveConnections.get(data.id);
|
||||||
if (connection) {
|
if (connection) {
|
||||||
logger.verbose(`WsServer | disconnecting existing connection for slave ${data.id}`);
|
logger.verbose(`WsServer | disconnecting existing connection for slave ${data.id}`);
|
||||||
connection.connector.setTimeout(15); // Slave connection is likely stalled
|
|
||||||
await connection.disconnect(1008, "Registered from another connection");
|
await connection.disconnect(1008, "Registered from another connection");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user