Don't skip want validation when the client sends no haves

Change-Id: I5e80b3befca5cf1dcb06075862d6d48e6491cc0f
This commit is contained in:
Dave Borowitz 2013-06-21 16:14:30 -07:00 committed by Matthias Sohn
parent 8a7f4864d8
commit bbea37a9e3
1 changed files with 2 additions and 2 deletions

View File

@ -786,10 +786,10 @@ else if (multiAck != MultiAck.OFF)
private ObjectId processHaveLines(List<ObjectId> peerHas, ObjectId last)
throws IOException {
preUploadHook.onBeginNegotiateRound(this, wantIds, peerHas.size());
if (peerHas.isEmpty())
return last;
if (wantAll.isEmpty() && !wantIds.isEmpty())
parseWants();
if (peerHas.isEmpty())
return last;
sentReady = false;
int haveCnt = 0;