Browse Source

Take into account timeout

Tatsuhiro Tsujikawa 9 năm trước cách đây
mục cha
commit
e8fcedf092
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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