mirror of https://github.com/aria2/aria2
Fix bug that evaluation of Peer::amChoking is negated
parent
b95d7fbfec
commit
ef9e67aeb2
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue