Skip to content

Commit

Permalink
fix: always check send_status == 1 in _async_submit
Browse files Browse the repository at this point in the history
  • Loading branch information
pankgeorg committed Sep 4, 2023
1 parent 0721ea5 commit 4b6c77c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/asyncresults.jl
Original file line number Diff line number Diff line change
Expand Up @@ -316,10 +316,6 @@ function _async_submit(
zeros(Cint, num_params), # all parameters in text format
Cint(binary_format), # return result in text or binary format
)

if isnonblocking(jl_conn) == 0
return send_status == 1
else
return flush(jl_conn)
end
# send_status must be 1, if nonblock, we also want to flush
return send_status == 1 && (isnonblocking(jl_conn) == 0 || flush(jl_conn))
end

0 comments on commit 4b6c77c

Please sign in to comment.