Skip to content

Commit

Permalink
Update src/asyncresults.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Eric Davies <[email protected]>
  • Loading branch information
pankgeorg and iamed2 authored Sep 18, 2023
1 parent 66dbaf3 commit 806d60d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/asyncresults.jl
Original file line number Diff line number Diff line change
Expand Up @@ -318,5 +318,9 @@ function _async_submit(
Cint(binary_format), # return result in text or binary format
)
# send_status must be 1, if nonblock, we also want to flush
return send_status == 1 && (isnonblocking(jl_conn) == 0 || flush(jl_conn))
if isnonblocking(jl_conn)
return send_status == 1 && flush(jl_conn) # or _flush if renamed
else
return send_status == 1
end
end

0 comments on commit 806d60d

Please sign in to comment.