From a82f5c987818c9a64c6fc69e15b12ebd973badb3 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Mon, 29 Feb 2016 14:48:59 -0800 Subject: [PATCH] websocket client: fix: emit 'update' when data.complete is 0 --- lib/client/websocket-tracker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/client/websocket-tracker.js b/lib/client/websocket-tracker.js index 8b00aaf..280ca8f 100644 --- a/lib/client/websocket-tracker.js +++ b/lib/client/websocket-tracker.js @@ -166,7 +166,7 @@ WebSocketTracker.prototype._onSocketData = function (data) { self._trackerId = trackerId } - if (data.complete) { + if (data.complete != null) { self.client.emit('update', { announce: self.announceUrl, complete: data.complete,