Skip to content

Commit 1c2fc0d

Browse files
committed
fix: proper left check
1 parent aa3e6b4 commit 1c2fc0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/client/http-tracker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class HTTPTracker extends Tracker {
5656
port: this.client._port
5757
})
5858

59-
if (params.left == null) params.left = 16384
59+
if (params.left !== 0 && !params.left) params.left = 16384
6060
if (this._trackerId) params.trackerid = this._trackerId
6161

6262
this._request(this.announceUrl, params, (err, data) => {

0 commit comments

Comments
 (0)