Skip to content

Commit 4b6c77c

Browse files
committed
fix: always check send_status == 1 in _async_submit
1 parent 0721ea5 commit 4b6c77c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/asyncresults.jl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,6 @@ function _async_submit(
316316
zeros(Cint, num_params), # all parameters in text format
317317
Cint(binary_format), # return result in text or binary format
318318
)
319-
320-
if isnonblocking(jl_conn) == 0
321-
return send_status == 1
322-
else
323-
return flush(jl_conn)
324-
end
319+
# send_status must be 1, if nonblock, we also want to flush
320+
return send_status == 1 && (isnonblocking(jl_conn) == 0 || flush(jl_conn))
325321
end

0 commit comments

Comments
 (0)