Explorar o código

Take into account timeout

Tatsuhiro Tsujikawa %!s(int64=9) %!d(string=hai) anos
pai
achega
e8fcedf092
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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