Remove unnecessary condition

pull/709/head
Tatsuhiro Tsujikawa 2016-07-10 00:05:08 +09:00
parent 4d27668d7c
commit f2aa7564b0
1 changed files with 1 additions and 2 deletions

View File

@ -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()));