mirror of https://github.com/aria2/aria2
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.ccpull/1/head
parent
da615e4e7a
commit
4f6df4be39
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue