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 a4d8440 commit 2d62505Copy full SHA for 2d62505
examples/nonblocking_execute.py
@@ -62,7 +62,7 @@ def main():
62
# Now we can set non-blocking mode
63
s.set_blocking(False)
64
chan = s.open_session()
65
- while chan is None:
+ while chan == LIBSSH2_ERROR_EAGAIN:
66
print("Would block on session open, waiting for socket to be ready")
67
wait_socket(sock, s)
68
0 commit comments