mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Fix pendingRequestTimeout bug
This commit is contained in:
@@ -326,6 +326,9 @@ export class WAConnection extends EventEmitter {
|
||||
let onOpen: () => void
|
||||
let onClose: ({ reason }) => void
|
||||
|
||||
if (this.pendingRequestTimeoutMs <= 0) {
|
||||
throw new BaileysError(DisconnectReason.close, { status: 428 })
|
||||
}
|
||||
await (
|
||||
Utils.promiseTimeout (
|
||||
this.pendingRequestTimeoutMs,
|
||||
|
||||
Reference in New Issue
Block a user