mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Update 1.Validation.ts
This commit is contained in:
@@ -49,7 +49,7 @@ export class WAConnection extends Base {
|
|||||||
else json.push ('takeover')
|
else json.push ('takeover')
|
||||||
// send login every 10s
|
// send login every 10s
|
||||||
const sendLoginReq = () => {
|
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...')
|
this.logger.warn('Received login timeout req when WS not open, ignoring...')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user