2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Code cleanup
	* src/RequestGroupMan.cc
pull/1/head
Tatsuhiro Tsujikawa 2009-04-17 14:56:13 +00:00
parent a883a4aecc
commit 82b0d66505
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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 {