mirror of
https://github.com/aria2/aria2.git
synced 2026-04-02 10:55:00 +00:00
Improve peer bitfield and piece stat update
On HAVE message reception and PIECE message transmission, update peer bitfield and piece stat only if current peer bitfield indicates it does not have the piece.
This commit is contained in:
@@ -115,6 +115,7 @@ void BtHaveMessageTest::testDoReceivedAction_goodByeSeeder()
|
||||
msg.doReceivedAction();
|
||||
|
||||
pieceStorage->setDownloadFinished(true);
|
||||
peer->updateBitfield(1, 0);
|
||||
try {
|
||||
msg.doReceivedAction();
|
||||
CPPUNIT_FAIL("exception must be thrown.");
|
||||
|
||||
Reference in New Issue
Block a user