diff --git a/ssheven-net.c b/ssheven-net.c index 8628407..7d6b146 100644 --- a/ssheven-net.c +++ b/ssheven-net.c @@ -524,6 +524,13 @@ void* read_thread(void* arg) // connect ok = init_connection(prefs.hostname+1); + + if (!ok) + { + read_thread_state = DONE; + return 0; + } + YieldToAnyThread(); // check the server pub key vs. known hosts