mirror of
https://github.com/aria2/aria2.git
synced 2026-04-02 10:55:00 +00:00
Ensure that lowest speed check is done even when download speed is 0
This commit is contained in:
@@ -419,4 +419,8 @@ void DownloadCommand::installStreamFilter(
|
||||
sinkFilterOnly_ = util::endsWith(name, SinkStreamFilter::NAME);
|
||||
}
|
||||
|
||||
// We need to override noCheck() to return true in order to measure
|
||||
// download speed to check lowest speed.
|
||||
bool DownloadCommand::noCheck() const { return true; }
|
||||
|
||||
} // namespace aria2
|
||||
|
||||
@@ -72,6 +72,8 @@ private:
|
||||
protected:
|
||||
virtual bool executeInternal() CXX11_OVERRIDE;
|
||||
|
||||
virtual bool noCheck() const CXX11_OVERRIDE;
|
||||
|
||||
virtual bool prepareForNextSegment();
|
||||
|
||||
// This is file local offset
|
||||
|
||||
Reference in New Issue
Block a user