mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-02-21 20:59:02 +00:00
Ensure client.destroy() callback is called when websocket pool used
Fixes #141
This commit is contained in:
parent
9a48e1c10a
commit
4431ae14ab
@ -137,6 +137,8 @@ WebSocketTracker.prototype.destroy = function (cb) {
|
||||
} catch (err) {
|
||||
cb(null)
|
||||
}
|
||||
} else {
|
||||
cb(null)
|
||||
}
|
||||
|
||||
self.socket = null
|
||||
|
Loading…
Reference in New Issue
Block a user