don't hang if the endpoint fails to open (GH bug #4)

This commit is contained in:
cy384 2021-01-28 08:49:15 -05:00
parent d967b7641b
commit d6306c706e
1 changed files with 7 additions and 0 deletions

View File

@ -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