Fix crash if unpause failed before assigning BtProgressInfoFile object

pull/180/head
Tatsuhiro Tsujikawa 2014-01-05 20:41:19 +09:00
parent b706722c59
commit dcf98d519f
1 changed files with 1 additions and 1 deletions

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