Skip to content

Commit

Permalink
Update connection.js
Browse files Browse the repository at this point in the history
  • Loading branch information
wackfx authored Nov 24, 2023
1 parent 233945a commit bb8937c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,7 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
lifeTimer.cancel()
connectTimer.cancel()

if (socket.encrypted)
socket.removeAllListeners()
socket.removeAllListeners()
socket = null

if (initial)
Expand Down

0 comments on commit bb8937c

Please sign in to comment.