/* */ #include "KeepRunningCommand.h" #include "DownloadEngine.h" #include "RequestGroupMan.h" namespace aria2 { KeepRunningCommand::KeepRunningCommand(cuid_t cuid, DownloadEngine* e) : Command(cuid), e_(e) { setStatusRealtime(); } KeepRunningCommand::~KeepRunningCommand() {} bool KeepRunningCommand::execute() { if(e_->isHaltRequested()) { return true; } e_->addCommand(std::unique_ptr(this)); return false; } } // namespace aria2