mirror of
https://github.com/aria2/aria2.git
synced 2026-04-02 18:59:20 +00:00
Fix bug that evaluation of Peer::amChoking is negated
This commit is contained in:
@@ -59,8 +59,12 @@ void BtInterestedMessage::doReceivedAction()
|
||||
if (isMetadataGetMode()) {
|
||||
return;
|
||||
}
|
||||
getPeer()->peerInterested(true);
|
||||
if (!getPeer()->amChoking()) {
|
||||
|
||||
auto& peer = getPeer();
|
||||
|
||||
peer->peerInterested(true);
|
||||
|
||||
if (peer->amChoking()) {
|
||||
peerStorage_->executeChoke();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user