fix: do not throw error on socket closed while opening (#1576)

This commit is contained in:
Cassio Santos
2025-07-04 17:31:46 -03:00
committed by GitHub
parent 34188a3a22
commit 4ccec1f6ce

View File

@@ -345,7 +345,6 @@ export const makeSocket = (config: SocketConfig) => {
clearTimeout(qrTimer)
ws.removeAllListeners('close')
ws.removeAllListeners('error')
ws.removeAllListeners('open')
ws.removeAllListeners('message')