Skip to content

Commit a55825b

Browse files
authored
Avoid infinite recursion in timer_callback (#164)
Fixes #163
1 parent d8c626b commit a55825b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Curl/Multi.jl

+1-3
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,7 @@ function timer_callback(
123123
multi = unsafe_pointer_to_objref(multi_p)::Multi
124124
@assert multi_h == multi.handle
125125
stoptimer!(multi)
126-
if timeout_ms == 0
127-
do_multi(multi)
128-
elseif timeout_ms >= 0
126+
if timeout_ms >= 0
129127
multi.timer = Timer(timeout_ms/1000) do timer
130128
lock(multi.lock) do
131129
multi.timer === timer || return

0 commit comments

Comments
 (0)