mirror of https://github.com/aria2/aria2
Ensure that lowest speed check is done even when download speed is 0
parent
2365c91994
commit
10b64e281a
|
@ -419,4 +419,8 @@ void DownloadCommand::installStreamFilter(
|
||||||
sinkFilterOnly_ = util::endsWith(name, SinkStreamFilter::NAME);
|
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
|
} // namespace aria2
|
||||||
|
|
|
@ -72,6 +72,8 @@ private:
|
||||||
protected:
|
protected:
|
||||||
virtual bool executeInternal() CXX11_OVERRIDE;
|
virtual bool executeInternal() CXX11_OVERRIDE;
|
||||||
|
|
||||||
|
virtual bool noCheck() const CXX11_OVERRIDE;
|
||||||
|
|
||||||
virtual bool prepareForNextSegment();
|
virtual bool prepareForNextSegment();
|
||||||
|
|
||||||
// This is file local offset
|
// This is file local offset
|
||||||
|
|
Loading…
Reference in New Issue