Don't skip want validation when the client sends no haves
Change-Id: I5e80b3befca5cf1dcb06075862d6d48e6491cc0f
This commit is contained in:
parent
fe248d24db
commit
84d2738ff2
|
@ -819,10 +819,10 @@ else if (multiAck != MultiAck.OFF)
|
||||||
private ObjectId processHaveLines(List<ObjectId> peerHas, ObjectId last)
|
private ObjectId processHaveLines(List<ObjectId> peerHas, ObjectId last)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
preUploadHook.onBeginNegotiateRound(this, wantIds, peerHas.size());
|
preUploadHook.onBeginNegotiateRound(this, wantIds, peerHas.size());
|
||||||
if (peerHas.isEmpty())
|
|
||||||
return last;
|
|
||||||
if (wantAll.isEmpty() && !wantIds.isEmpty())
|
if (wantAll.isEmpty() && !wantIds.isEmpty())
|
||||||
parseWants();
|
parseWants();
|
||||||
|
if (peerHas.isEmpty())
|
||||||
|
return last;
|
||||||
|
|
||||||
sentReady = false;
|
sentReady = false;
|
||||||
int haveCnt = 0;
|
int haveCnt = 0;
|
||||||
|
|
Loading…
Reference in New Issue