Explorar el Código

Take into account timeout

Tatsuhiro Tsujikawa hace 9 años
padre
commit
e8fcedf092
Se han modificado 1 ficheros con 1 adiciones y 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