fix: connection leaks (#420)

This commit is contained in:
Lookis 2022-03-25 16:43:36 +08:00 committed by GitHub
parent 330301ab00
commit f7928cfcc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)}`)
}