fix: 3415 assert failure in webseed.requestBlocks (#3470)

Fixes #3415.
This commit is contained in:
Charles Kerr 2022-07-18 11:40:58 -05:00 committed by GitHub
parent 3f07838be8
commit fb431cb1c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -271,9 +271,6 @@ public:
void requestBlocks(tr_block_span_t const* block_spans, size_t n_spans) override
{
auto* const tor = getTorrent();
TR_ASSERT(tor != nullptr);
TR_ASSERT(tor->isRunning);
TR_ASSERT(!tor->isDone());
if (tor == nullptr || !tor->isRunning || tor->isDone())
{
return;