mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
connect cooldown + terminate WS instead of close
This commit is contained in:
@@ -123,7 +123,7 @@ export const openWebSocketConnection = (timeoutMs: number, retryOnNetworkError:
|
||||
try {
|
||||
const ws = await newWS()
|
||||
if (cancelled) {
|
||||
ws.close ()
|
||||
ws.terminate ()
|
||||
break
|
||||
} else return ws
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user