give up after first read error (github issue #1)

This commit is contained in:
cy384 2020-11-10 18:01:23 -05:00
parent b2e58e0d03
commit 76b07727f4
1 changed files with 1 additions and 0 deletions

View File

@ -248,6 +248,7 @@ void ssh_read(void)
if (rc <= 0)
{
printf_i("channel read error: %s\r\n", libssh2_error_string(rc));
read_thread_command = EXIT;
}
while (rc > 0)