tracker id 0 being skipped

This commit is contained in:
2023-09-18 12:50:57 -05:00
parent 610a89c8db
commit 186d8269bb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ function decodeDataTrackerListChunk(dataTrackerListChunk: DataTrackerListChunk)
if (trackerChunk.data_len) {
offset += trackerChunk.data_len;
}
if (trackerChunk.id) {
if (trackerChunk.id !== undefined) {
dataTrackerListChunk.trackers[trackerChunk.id] = trackerChunk;
}
}
+1 -1
View File
@@ -13,7 +13,7 @@ function decodeInfoTrackerListChunk(infoTrackerListChunk: InfoTrackerListChunk)
if (trackerChunk.data_len) {
offset += trackerChunk.data_len;
}
if (trackerChunk.id) {
if (trackerChunk.id !== undefined) {
infoTrackerListChunk.trackers[trackerChunk.id] = trackerChunk;
}
}