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