Fix crash if unpause failed before assigning BtProgressInfoFile object

This commit is contained in:
Tatsuhiro Tsujikawa 2014-01-05 20:41:19 +09:00
parent b706722c59
commit dcf98d519f

View File

@ -992,7 +992,7 @@ void RequestGroup::releaseRuntimeResource(DownloadEngine* e)
}
// Don't reset segmentMan_ and pieceStorage_ here to provide
// progress information via RPC
progressInfoFile_.reset();
progressInfoFile_ = std::make_shared<NullProgressInfoFile>();
downloadContext_->releaseRuntimeResource();
}