Skip to content
This repository was archived by the owner on Dec 28, 2022. It is now read-only.

Commit 44f36e2

Browse files
committed
add an extra check to dequeue explicit requests in range requester
1 parent ad900b9 commit 44f36e2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/replicator.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,6 +726,10 @@ class Peer {
726726
b.inflight.push(req)
727727
this._send(req)
728728

729+
// Don't think this will ever happen, as the pending queue is drained before the range queue
730+
// but doesn't hurt to check this explicitly here also.
731+
if (b.queued) b.queued = false
732+
729733
return true
730734
}
731735

0 commit comments

Comments
 (0)