mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
connect fixes
This commit is contained in:
@@ -314,6 +314,7 @@ export class WAConnection extends EventEmitter {
|
||||
this.conn = null
|
||||
this.phoneConnected = false
|
||||
this.lastDisconnectReason = reason
|
||||
this.lastSeen = null
|
||||
|
||||
if (reason === 'invalid_session' || reason === 'intentional') {
|
||||
this.pendingRequests.forEach (({reject}) => reject(new Error('close')))
|
||||
|
||||
Reference in New Issue
Block a user