mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2024-12-13 19:06:27 +00:00
remove socket from pool on destroy
This commit is contained in:
parent
2061eb9818
commit
4128604301
@ -73,6 +73,8 @@ WebSocketTracker.prototype.destroy = function (onclose) {
|
||||
self.destroyed = true
|
||||
clearInterval(self.interval)
|
||||
|
||||
socketPool[self.announceUrl] = null
|
||||
|
||||
self.socket.removeListener('data', self._onSocketDataBound)
|
||||
self.socket.removeListener('close', self._onSocketCloseBound)
|
||||
self.socket.removeListener('error', self._onSocketErrorBound)
|
||||
|
Loading…
Reference in New Issue
Block a user