diff --git a/lib/client/websocket-tracker.js b/lib/client/websocket-tracker.js index 6f9e9e7..8a0f475 100644 --- a/lib/client/websocket-tracker.js +++ b/lib/client/websocket-tracker.js @@ -172,6 +172,9 @@ class WebSocketTracker extends Tracker { this.socket = socketPool[this.announceUrl] if (this.socket) { socketPool[this.announceUrl].consumers += 1 + if (this.socket.connected) { + this._onSocketConnectBound() + } } else { this.socket = socketPool[this.announceUrl] = new Socket(this.announceUrl) this.socket.consumers = 1