2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

Fixed the bug that aria2 exits when commands is empty() but
	_routineCommands are not.
	* src/DownloadEngine.cc
pull/1/head
Tatsuhiro Tsujikawa 2008-04-23 10:03:52 +00:00
parent da615e4e7a
commit 4f6df4be39
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed the bug that aria2 exits when commands is empty() but
_routineCommands are not.
* src/DownloadEngine.cc
2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Use the default value pulled from Option object in HelpItemFactory.

View File

@ -128,7 +128,7 @@ static void executeCommand(std::deque<Command*>& commands,
void DownloadEngine::run() {
Time cp;
cp.setTimeInSec(0);
while(!commands.empty()) {
while(!commands.empty() || !_routineCommands.empty()) {
if(cp.elapsed(1)) {
cp.reset();
executeCommand(commands, Command::STATUS_ALL);