mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
update package
This commit is contained in:
@@ -293,6 +293,7 @@ export class WAConnection extends EventEmitter {
|
||||
|
||||
this.qrTimeout && clearTimeout (this.qrTimeout)
|
||||
this.phoneCheck && clearTimeout (this.phoneCheck)
|
||||
this.keepAliveReq && clearInterval(this.keepAliveReq)
|
||||
|
||||
this.state = 'close'
|
||||
this.msgCount = 0
|
||||
@@ -314,7 +315,7 @@ export class WAConnection extends EventEmitter {
|
||||
delete this.callbacks[key]
|
||||
}
|
||||
})
|
||||
if (this.keepAliveReq) clearInterval(this.keepAliveReq)
|
||||
|
||||
// reconnecting if the timeout is active for the reconnect loop
|
||||
this.emit ('close', { reason, isReconnecting: this.cancelReconnect || isReconnecting})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user