mirror of
https://github.com/aria2/aria2.git
synced 2025-02-26 08:22:11 +00:00
Remove unnecessary condition
This commit is contained in:
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
Block a user