Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close Multi timers atexit. Add 1.6 CI #234

Merged
merged 15 commits into from
Jan 13, 2024
6 changes: 6 additions & 0 deletions src/Curl/Multi.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ function remove_handle(multi::Multi, easy::Easy)
done!(multi)
end
end
Base.atexit() do
close(multi.timer)
end
end
unpreserve_handle(multi)
end
Expand Down Expand Up @@ -134,6 +137,9 @@ function timer_callback(
do_multi(multi)
end
end
Base.atexit() do
close(multi.timer)
end
elseif timeout_ms != -1
@async @error("timer_callback: invalid timeout value", timeout_ms, maxlog=1_000)
return -1
Expand Down
Loading