diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-09-01 16:05:06 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-09-01 16:05:06 +0200 |
commit | e67d834156a381fe7ef7933d135130083b86d1e3 (patch) | |
tree | e8f3485bc07f19cc2f2bef6ad0ef11af0606984d /libssh/client.c | |
parent | a93f2d8bfe98e2927fc7024973c52062ccd28b30 (diff) | |
download | libssh-e67d834156a381fe7ef7933d135130083b86d1e3.tar.gz libssh-e67d834156a381fe7ef7933d135130083b86d1e3.tar.xz libssh-e67d834156a381fe7ef7933d135130083b86d1e3.zip |
Fix initialization of threading
Diffstat (limited to 'libssh/client.c')
-rw-r--r-- | libssh/client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libssh/client.c b/libssh/client.c index 749284fe..d12aa117 100644 --- a/libssh/client.c +++ b/libssh/client.c @@ -701,10 +701,11 @@ int ssh_connect(ssh_session session) { /*, session->timeout * 1000 + session->timeout_usec); */ } - if (ret != SSH_OK) { + if (ret == SSH_ERROR) { leave_function(); return SSH_ERROR; } + set_status(session, 0.2f); session->alive = 1; |