Skip to content

Commit

Permalink
Avoid infinite recursion in timer_callback (JuliaLang#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash authored Nov 9, 2021
1 parent d8c626b commit a55825b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Curl/Multi.jl
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,7 @@ function timer_callback(
multi = unsafe_pointer_to_objref(multi_p)::Multi
@assert multi_h == multi.handle
stoptimer!(multi)
if timeout_ms == 0
do_multi(multi)
elseif timeout_ms >= 0
if timeout_ms >= 0
multi.timer = Timer(timeout_ms/1000) do timer
lock(multi.lock) do
multi.timer === timer || return
Expand Down

0 comments on commit a55825b

Please sign in to comment.