mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-18 12:11:36 +00:00
fix: connection leaks (#420)
This commit is contained in:
parent
330301ab00
commit
f7928cfcc6
@ -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)}`)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user