Update 1.Validation.ts

This commit is contained in:
Adhiraj Singh
2020-12-05 14:23:28 +05:30
parent 4a6c72c36c
commit cbb8301e07

View File

@@ -49,7 +49,7 @@ export class WAConnection extends Base {
else json.push ('takeover')
// send login every 10s
const sendLoginReq = () => {
if (this.conn.readyState !== this.conn.OPEN) {
if (this.conn?.readyState !== this.conn.OPEN) {
this.logger.warn('Received login timeout req when WS not open, ignoring...')
return
}