Skip to content

Commit 806d60d

Browse files
pankgeorgiamed2
andauthored
Update src/asyncresults.jl
Co-authored-by: Eric Davies <[email protected]>
1 parent 66dbaf3 commit 806d60d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/asyncresults.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,5 +318,9 @@ function _async_submit(
318318
Cint(binary_format), # return result in text or binary format
319319
)
320320
# send_status must be 1, if nonblock, we also want to flush
321-
return send_status == 1 && (isnonblocking(jl_conn) == 0 || flush(jl_conn))
321+
if isnonblocking(jl_conn)
322+
return send_status == 1 && flush(jl_conn) # or _flush if renamed
323+
else
324+
return send_status == 1
325+
end
322326
end

0 commit comments

Comments
 (0)