mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: clear debounce timeout on close
This commit is contained in:
@@ -271,6 +271,10 @@ const makeChatsSocket = (config: LegacySocketConfig) => {
|
|||||||
ev.emit('blocklist.set', { blocklist })
|
ev.emit('blocklist.set', { blocklist })
|
||||||
})
|
})
|
||||||
|
|
||||||
|
socketEvents.on('ws-close', () => {
|
||||||
|
chatsDebounceTimeout.cancel()
|
||||||
|
})
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...sock,
|
...sock,
|
||||||
sendChatsQuery,
|
sendChatsQuery,
|
||||||
|
|||||||
Reference in New Issue
Block a user