Commit 80d0e01b authored by Joris Guisson's avatar Joris Guisson
Browse files

Reject requests when we have choked a peer, when we receive the request

svn path=/branches/ktorrent/2.0/; revision=593290
parent 4121b875
......@@ -217,7 +217,10 @@ namespace bt
ReadUint32(tmp_buf,9),
id);
uploader->addRequest(r);
if (!am_choked)
uploader->addRequest(r);
else if (stats.fast_extensions)
pwriter->sendReject(r);
// Out() << "REQUEST " << r.getIndex() << " " << r.getOffset() << endl;
}
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment