From dcf98d519f2a1d4a1ab221e581570ffcb56b16c5 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 5 Jan 2014 20:41:19 +0900 Subject: [PATCH] Fix crash if unpause failed before assigning BtProgressInfoFile object --- src/RequestGroup.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RequestGroup.cc b/src/RequestGroup.cc index 4f7a8f9c..2b3e1410 100644 --- a/src/RequestGroup.cc +++ b/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(); downloadContext_->releaseRuntimeResource(); }