mirror of https://github.com/aria2/aria2
Call RequestGroup::setLastError when exception is caught while
creating initial commands.pull/1/head
parent
f5a9448cf1
commit
d5b6ec8621
|
@ -524,6 +524,7 @@ void RequestGroupMan::fillRequestGroupFromReserver(DownloadEngine* e)
|
|||
std::for_each(commands.begin(), commands.end(), Deleter());
|
||||
commands.clear();
|
||||
A2_LOG_DEBUG("Commands deleted");
|
||||
groupToAdd->setLastErrorCode(ex.getErrorCode());
|
||||
groupToAdd->releaseRuntimeResource(e);
|
||||
addDownloadResult(groupToAdd->createDownloadResult());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue