mirror of
https://github.com/cy384/ssheven.git
synced 2026-05-21 06:45:34 -06:00
fix error when a key is hit while connecting
This commit is contained in:
parent
77e05f4c6d
commit
943ff10322
1 changed files with 2 additions and 2 deletions
|
|
@ -817,8 +817,6 @@ int init_connection(char* hostname)
|
||||||
const char* banner = libssh2_session_banner_get(ssh_con.session);
|
const char* banner = libssh2_session_banner_get(ssh_con.session);
|
||||||
if (banner) printf_i("Server banner: %s\r\n", banner);
|
if (banner) printf_i("Server banner: %s\r\n", banner);
|
||||||
|
|
||||||
read_thread_state = OPEN;
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -829,6 +827,8 @@ int ssh_setup_terminal(void)
|
||||||
SSH_CHECK(libssh2_channel_request_pty_ex(ssh_con.channel, prefs.terminal_string, (strlen(prefs.terminal_string)), NULL, 0, con.size_x, con.size_y, 0, 0));
|
SSH_CHECK(libssh2_channel_request_pty_ex(ssh_con.channel, prefs.terminal_string, (strlen(prefs.terminal_string)), NULL, 0, con.size_x, con.size_y, 0, 0));
|
||||||
SSH_CHECK(libssh2_channel_shell(ssh_con.channel));
|
SSH_CHECK(libssh2_channel_shell(ssh_con.channel));
|
||||||
|
|
||||||
|
read_thread_state = OPEN;
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue