Skip to content

Commit

Permalink
check early return before lock
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Jul 13, 2024
1 parent 51e5321 commit d363a02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Curl/Multi.jl
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ function socket_callback(
err isa Base.IOError || rethrow()
FileWatching.FDEvent()
end
watcher.readable || watcher.writable || return # !isopen
flags = CURL_CSELECT_IN * isreadable(events) +
CURL_CSELECT_OUT * iswritable(events) +
CURL_CSELECT_ERR * (events.disconnect || events.timedout)
Expand Down

0 comments on commit d363a02

Please sign in to comment.