Skip to content

Commit

Permalink
fix: connection leaks (#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
lookis authored Mar 25, 2022
1 parent 330301a commit f7928cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/client/websocket-tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ class WebSocketTracker extends Tracker {
clearTimeout(peer.trackerTimeout)
peer.trackerTimeout = null
delete this.peers[offerId]
peer.destroy()
} else {
debug(`got unexpected answer: ${JSON.stringify(data.answer)}`)
}
Expand Down

0 comments on commit f7928cf

Please sign in to comment.