From ec534b68e21d211b00ea63a3503cffafecf20eae Mon Sep 17 00:00:00 2001 From: tan Date: Thu, 5 Sep 2024 08:37:40 +0530 Subject: [PATCH] trigger easy.ready --- src/Curl/Easy.jl | 2 +- src/Downloads.jl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Curl/Easy.jl b/src/Curl/Easy.jl index cf63f50..66ac45c 100644 --- a/src/Curl/Easy.jl +++ b/src/Curl/Easy.jl @@ -375,7 +375,7 @@ function upload_data(easy::Easy, input::IO) curl_easy_pause(easy.handle, Curl.CURLPAUSE_CONT) wait(easy.ready) easy.input === nothing && break - easy.ready = Threads.Event() + reset(easy.ready) end end diff --git a/src/Downloads.jl b/src/Downloads.jl index 4d3fbcf..1fe95fa 100644 --- a/src/Downloads.jl +++ b/src/Downloads.jl @@ -407,6 +407,7 @@ function request( close(easy.progress) interrupted[] = true close(input) + notify(easy.ready) end else interrupt_task = nothing