summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-01-16 22:35:30 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2011-01-16 22:35:30 +0900
commit4824b09237e049ac7d912cdaa4a8a041eedd5dab (patch)
tree0d7fd85a2cebbbe712c5326176a09f97c7a0abe3 /src
parent90d94953d7cb8226708d4b13de58ff0059345aa2 (diff)
Reverted comment which was removed unintentionally. Moved 2
DownloadEngine related lines outside of #ifdef ENABLE_MESSAGE_DIGEST.
Diffstat (limited to 'src')
-rw-r--r--src/DownloadCommand.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/DownloadCommand.cc b/src/DownloadCommand.cc
index 99a0f85d..11e94dc4 100644
--- a/src/DownloadCommand.cc
+++ b/src/DownloadCommand.cc
@@ -306,9 +306,11 @@ bool DownloadCommand::prepareForNextSegment() {
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()->setRefreshInterval(0);
-#endif // ENABLE_MESSAGE_DIGEST
return true;
} else {
// The number of segments should be 1 in order to pass through the next