mirror of https://github.com/aria2/aria2
Remove unnecessary condition
parent
4d27668d7c
commit
f2aa7564b0
|
@ -64,8 +64,7 @@ void BtRequestMessage::doReceivedAction()
|
|||
}
|
||||
if (getPieceStorage()->hasPiece(getIndex()) &&
|
||||
(!getPeer()->amChoking() ||
|
||||
(getPeer()->amChoking() &&
|
||||
getPeer()->isInAmAllowedIndexSet(getIndex())))) {
|
||||
getPeer()->isInAmAllowedIndexSet(getIndex()))) {
|
||||
getBtMessageDispatcher()->addMessageToQueue(
|
||||
getBtMessageFactory()->createPieceMessage(getIndex(), getBegin(),
|
||||
getLength()));
|
||||
|
|
Loading…
Reference in New Issue