Browse Source

Fix crash if unpause failed before assigning BtProgressInfoFile object

Tatsuhiro Tsujikawa 11 years ago
parent
commit
dcf98d519f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/RequestGroup.cc

+ 1 - 1
src/RequestGroup.cc

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