mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
Fixed crash on exit while downloading from webseed (#4451)
This commit is contained in:
@@ -452,9 +452,6 @@ void onPartialDataFetched(tr_web::FetchResponse const& web_response)
|
||||
bool const success = status == 206;
|
||||
|
||||
auto* const task = static_cast<tr_webseed_task*>(vtask);
|
||||
auto* const webseed = task->webseed;
|
||||
|
||||
webseed->connection_limiter.taskFinished(success);
|
||||
|
||||
if (task->dead)
|
||||
{
|
||||
@@ -462,6 +459,9 @@ void onPartialDataFetched(tr_web::FetchResponse const& web_response)
|
||||
return;
|
||||
}
|
||||
|
||||
auto* const webseed = task->webseed;
|
||||
webseed->connection_limiter.taskFinished(success);
|
||||
|
||||
if (auto const* const tor = webseed->getTorrent(); tor == nullptr)
|
||||
{
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user