Skip to content

Commit 0536daa

Browse files
committed
backend/curl wake from loop when unpause fails
1 parent 0725afe commit 0536daa

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

backends/curl/src/async/loop.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,7 @@ fn run_loop(multl_waker_tx: oneshot::Sender<LoopManagerShared>) {
422422
{
423423
let res = Err(e.into());
424424
ctx.state.lock().unwrap().result = RequestResult::Done { res, id };
425+
ctx.waker.wake();
425426
}
426427
}
427428
LoopTask::UnpauseSendHandle(id) => {
@@ -437,6 +438,7 @@ fn run_loop(multl_waker_tx: oneshot::Sender<LoopManagerShared>) {
437438
}) {
438439
let res = Err(e.into());
439440
ctx.state.lock().unwrap().result = RequestResult::Done { res, id };
441+
ctx.waker.wake();
440442
}
441443
}
442444
LoopTask::DropHandle(id) => {

0 commit comments

Comments
 (0)