mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
reject () fix
This commit is contained in:
@@ -285,7 +285,7 @@ module.exports = {
|
||||
resolve ()
|
||||
})
|
||||
} else {
|
||||
throw "You're not even connected, you can't log out"
|
||||
reject("You're not even connected, you can't log out")
|
||||
}
|
||||
})
|
||||
.then (() => this.close ())
|
||||
@@ -300,7 +300,7 @@ module.exports = {
|
||||
const keys = Object.keys (this.callbacks)
|
||||
keys.forEach (key => {
|
||||
if (!key.includes ("function:")) {
|
||||
this.callbacks[key].reject ("connection closed")
|
||||
this.callbacks[key].errCallback ("connection closed")
|
||||
delete this.callbacks[key]
|
||||
}
|
||||
} )
|
||||
|
||||
Reference in New Issue
Block a user