mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
fix: assertion failed: task->loc.byte <= task->end_byte (#3109)
This commit is contained in:
@@ -373,13 +373,8 @@ void onBufferGotData(evbuffer* /*buf*/, evbuffer_cb_info const* info, void* vtas
|
||||
return;
|
||||
}
|
||||
|
||||
auto const* const session = task->session;
|
||||
auto const lock = session->unique_lock();
|
||||
|
||||
auto* const webseed = task->webseed;
|
||||
webseed->gotPieceData(n_added);
|
||||
|
||||
useFetchedBlocks(task);
|
||||
auto const lock = task->session->unique_lock();
|
||||
task->webseed->gotPieceData(n_added);
|
||||
}
|
||||
|
||||
void task_request_next_chunk(tr_webseed_task* task);
|
||||
@@ -444,6 +439,8 @@ void onPartialDataFetched(tr_web::FetchResponse const& web_response)
|
||||
return;
|
||||
}
|
||||
|
||||
useFetchedBlocks(task);
|
||||
|
||||
if (task->loc.byte < task->end_byte)
|
||||
{
|
||||
// Request finished successfully but there's still data missing.
|
||||
|
||||
Reference in New Issue
Block a user