Skip to content
Snippets Groups Projects
Commit 028f44c9 authored by deuce's avatar deuce
Browse files

Do a socket_check() in SSH mode.

Fixes ZModem timeout errors.
parent 58b36190
Branches
Tags
No related merge requests found
......@@ -43,6 +43,9 @@ int conn_recv(char *buffer, size_t buflen, unsigned timeout)
if(con_type==CONN_TYPE_SSH) {
int status;
if(!socket_check(conn_socket, &data_waiting, NULL, timeout))
return(-1);
status=cl.PopData(ssh_session, buffer, buflen, &rd);
if(cryptStatusError(status)) {
char str[1024];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment