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:
Hornwitser committed 2021-09-27 03:45:52 +02:00
1 parent d99e160a27
commit 642504874b
1 file changed
-1
-1
View File
@@ -266,7 +266,6 @@ ${err.stack}`
let connection = this.slaveConnections.get(data.id);
if (connection) {
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");
}