浏览代码

Take into account timeout

Tatsuhiro Tsujikawa 9 年之前
父节点
当前提交
e8fcedf092
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/DownloadCommand.cc

+ 1 - 1
src/DownloadCommand.cc

@@ -421,6 +421,6 @@ void DownloadCommand::installStreamFilter(
 
 // We need to override noCheck() to return true in order to measure
 // download speed to check lowest speed.
-bool DownloadCommand::noCheck() const { return true; }
+bool DownloadCommand::noCheck() const { return lowestDownloadSpeedLimit_ > 0; }
 
 } // namespace aria2