Преглед изворни кода

Fix crash if unpause failed before assigning BtProgressInfoFile object

Tatsuhiro Tsujikawa пре 11 година
родитељ
комит
dcf98d519f
1 измењених фајлова са 1 додато и 1 уклоњено
  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();
 }