Call RequestGroup::setLastError when exception is caught while

creating initial commands.
pull/1/head
Tatsuhiro Tsujikawa 2010-11-29 01:32:25 +09:00
parent f5a9448cf1
commit d5b6ec8621
1 changed files with 1 additions and 0 deletions

View File

@ -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());
}