mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2024-12-13 19:06:27 +00:00
websocket client: fix: emit 'update' when data.complete is 0
This commit is contained in:
parent
7a0fe31ba5
commit
a82f5c9878
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user