mirror of https://github.com/aria2/aria2
Fix busy loop when upload rate limit hits
parent
ae6067d2a9
commit
887f7a6b90
|
@ -360,8 +360,12 @@ bool PeerInteractionCommand::executeInternal()
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (btInteractive_->countPendingMessage() > 0 ||
|
if ((btInteractive_->countPendingMessage() > 0 ||
|
||||||
btInteractive_->isSendingMessageInProgress()) {
|
btInteractive_->isSendingMessageInProgress()) &&
|
||||||
|
!getDownloadEngine()
|
||||||
|
->getRequestGroupMan()
|
||||||
|
->doesOverallUploadSpeedExceed() &&
|
||||||
|
!requestGroup_->doesUploadSpeedExceed()) {
|
||||||
setWriteCheckSocket(getSocket());
|
setWriteCheckSocket(getSocket());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue