Skip to content

Commit

Permalink
trigger easy.ready
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmaykm committed Sep 5, 2024
1 parent e77f312 commit ec534b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Curl/Easy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions src/Downloads.jl
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ function request(
close(easy.progress)
interrupted[] = true
close(input)
notify(easy.ready)
end
else
interrupt_task = nothing
Expand Down

0 comments on commit ec534b6

Please sign in to comment.