Skip to content

Commit

Permalink
fix queryOnConnect in case on no password
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipivan committed Jan 12, 2024
1 parent 087a566 commit f11d7bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tcp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand Down

0 comments on commit f11d7bb

Please sign in to comment.