|
@@ -128,7 +128,7 @@ Session* sessionNew(const KeyVals& options, const SessionConfig& config)
|
|
|
if(config.keepRunning) {
|
|
|
e->getRequestGroupMan()->setKeepRunning(true);
|
|
|
// Add command to make aria2 keep event polling
|
|
|
- e->addCommand(new KeepRunningCommand(e->newCUID(), e.get()));
|
|
|
+ e->addCommand(make_unique<KeepRunningCommand>(e->newCUID(), e.get()));
|
|
|
}
|
|
|
if(config.downloadEventCallback) {
|
|
|
std::shared_ptr<DownloadEventListener> listener
|