From f11d7bb70bcfeae0cd58614f7eb09214ce966a73 Mon Sep 17 00:00:00 2001 From: Phillip Pietruschka Date: Fri, 12 Jan 2024 21:10:11 +1100 Subject: [PATCH] fix queryOnConnect in case on no password --- src/tcp.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tcp.js b/src/tcp.js index 777ddb3..6b8a471 100644 --- a/src/tcp.js +++ b/src/tcp.js @@ -69,10 +69,12 @@ module.exports = { this.sendCommand(' ') if (this.config.password == '') { this.recorder.loggedIn = true + this.stopTimeOut() + this.startCmdQueue() + this.startKeepAlive() for (let i = 0; i < cmdOnLogin.length; i++) { this.addCmdtoQueue(SOM + cmdOnLogin[i]) } - this.startKeepAlive() } return true },