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()) &&
|
if (getPieceStorage()->hasPiece(getIndex()) &&
|
||||||
(!getPeer()->amChoking() ||
|
(!getPeer()->amChoking() ||
|
||||||
(getPeer()->amChoking() &&
|
getPeer()->isInAmAllowedIndexSet(getIndex()))) {
|
||||||
getPeer()->isInAmAllowedIndexSet(getIndex())))) {
|
|
||||||
getBtMessageDispatcher()->addMessageToQueue(
|
getBtMessageDispatcher()->addMessageToQueue(
|
||||||
getBtMessageFactory()->createPieceMessage(getIndex(), getBegin(),
|
getBtMessageFactory()->createPieceMessage(getIndex(), getBegin(),
|
||||||
getLength()));
|
getLength()));
|
||||||
|
|
Loading…
Reference in New Issue