mirror of https://github.com/aria2/aria2
Reverted comment which was removed unintentionally. Moved 2
DownloadEngine related lines outside of #ifdef ENABLE_MESSAGE_DIGEST.pull/1/head
parent
90d94953d7
commit
4824b09237
|
@ -306,9 +306,11 @@ bool DownloadCommand::prepareForNextSegment() {
|
||||||
getDownloadEngine()->getCheckIntegrityMan()->pushEntry(entry);
|
getDownloadEngine()->getCheckIntegrityMan()->pushEntry(entry);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif // ENABLE_MESSAGE_DIGEST
|
||||||
|
// Following 2lines are needed for DownloadEngine to detect
|
||||||
|
// completed RequestGroups without 1sec delay.
|
||||||
getDownloadEngine()->setNoWait(true);
|
getDownloadEngine()->setNoWait(true);
|
||||||
getDownloadEngine()->setRefreshInterval(0);
|
getDownloadEngine()->setRefreshInterval(0);
|
||||||
#endif // ENABLE_MESSAGE_DIGEST
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
// The number of segments should be 1 in order to pass through the next
|
// The number of segments should be 1 in order to pass through the next
|
||||||
|
|
Loading…
Reference in New Issue