fix: deadlock between session and web mutexes (#3251)

Fixes #3242.

Introduced by #2693.
This commit is contained in:
Charles Kerr 2022-06-10 23:56:43 -05:00 committed by GitHub
parent 7269db2d45
commit adc105ed2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -465,10 +465,10 @@ private:
curl_multi_add_handle(multi.get(), task->easy());
}
impl->queued_tasks.clear();
impl->resumePausedTasks();
}
impl->resumePausedTasks();
// Adapted from https://curl.se/libcurl/c/curl_multi_wait.html docs.
// 'numfds' being zero means either a timeout or no file descriptors to
// wait for. Try timeout on first occurrence, then assume no file