Skip to content

Commit 6f20a48

Browse files
authored
Patch: Connection stuck after a while (#738)
* Update connection.js
1 parent 61c4d5b commit 6f20a48

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/connection.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -429,10 +429,8 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
429429
lifeTimer.cancel()
430430
connectTimer.cancel()
431431

432-
if (socket.encrypted) {
433-
socket.removeAllListeners()
434-
socket = null
435-
}
432+
socket.removeAllListeners()
433+
socket = null
436434

437435
if (initial)
438436
return reconnect()

0 commit comments

Comments
 (0)