mirror of https://github.com/aria2/aria2
Don't search faster server using ServerStatMan if req_ is null or
total length is unknown.pull/1/head
parent
644bb4e817
commit
d2e76eca47
|
@ -180,8 +180,9 @@ bool AbstractCommand::execute() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Don't use this feature if PREF_MAX_{OVERALL_}DOWNLOAD_LIMIT
|
// Don't use this feature if PREF_MAX_{OVERALL_}DOWNLOAD_LIMIT
|
||||||
// is used
|
// is used or total length is unknown.
|
||||||
if(e_->getRequestGroupMan()->getMaxOverallDownloadSpeedLimit() == 0 &&
|
if(req_ && fileEntry_->getLength() > 0 &&
|
||||||
|
e_->getRequestGroupMan()->getMaxOverallDownloadSpeedLimit() == 0 &&
|
||||||
requestGroup_->getMaxDownloadSpeedLimit() == 0 &&
|
requestGroup_->getMaxDownloadSpeedLimit() == 0 &&
|
||||||
serverStatTimer_.difference(global::wallclock) >= 10) {
|
serverStatTimer_.difference(global::wallclock) >= 10) {
|
||||||
serverStatTimer_ = global::wallclock;
|
serverStatTimer_ = global::wallclock;
|
||||||
|
|
Loading…
Reference in New Issue