Fixed the bug that aria2 exits when commands is empty() but _routineCommands are not. * src/DownloadEngine.cc
@@ -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.
@@ -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);