|
|
@@ -88,9 +88,9 @@ DownloadEngineFactory::newDownloadEngine(Option* op,
|
|
|
e->commands.push_back(new AutoSaveCommand(CUIDCounterSingletonHolder::instance()->newID(), e.get(), op->getAsInt(PREF_AUTO_SAVE_INTERVAL)));
|
|
|
e->commands.push_back(new HaveEraseCommand(CUIDCounterSingletonHolder::instance()->newID(), e.get(), 10));
|
|
|
{
|
|
|
- int32_t stopMin = op->getAsInt(PREF_STOP);
|
|
|
- if(stopMin > 0) {
|
|
|
- e->commands.push_back(new TimedHaltCommand(CUIDCounterSingletonHolder::instance()->newID(), e.get(), stopMin*60));
|
|
|
+ int32_t stopSec = op->getAsInt(PREF_STOP);
|
|
|
+ if(stopSec > 0) {
|
|
|
+ e->commands.push_back(new TimedHaltCommand(CUIDCounterSingletonHolder::instance()->newID(), e.get(), stopSec));
|
|
|
}
|
|
|
}
|
|
|
return e;
|