mirror of https://github.com/aria2/aria2
2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Code cleanup * src/RequestGroupMan.ccpull/1/head
parent
a883a4aecc
commit
82b0d66505
|
@ -1,3 +1,8 @@
|
|||
2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Code cleanup
|
||||
* src/RequestGroupMan.cc
|
||||
|
||||
2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Code cleanup
|
||||
|
|
|
@ -307,7 +307,7 @@ void RequestGroupMan::fillRequestGroupFromReserver(DownloadEngine* e)
|
|||
removeStoppedGroup(e);
|
||||
unsigned int count = 0;
|
||||
for(int num = _maxSimultaneousDownloads-_requestGroups.size();
|
||||
num > 0 && _reservedGroups.size() > 0; --num) {
|
||||
num > 0 && !_reservedGroups.empty(); --num) {
|
||||
RequestGroupHandle groupToAdd = _reservedGroups.front();
|
||||
_reservedGroups.pop_front();
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue