We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0721ea5 commit 4b6c77cCopy full SHA for 4b6c77c
src/asyncresults.jl
@@ -316,10 +316,6 @@ function _async_submit(
316
zeros(Cint, num_params), # all parameters in text format
317
Cint(binary_format), # return result in text or binary format
318
)
319
-
320
- if isnonblocking(jl_conn) == 0
321
- return send_status == 1
322
- else
323
- return flush(jl_conn)
324
- end
+ # send_status must be 1, if nonblock, we also want to flush
+ return send_status == 1 && (isnonblocking(jl_conn) == 0 || flush(jl_conn))
325
end
0 commit comments