1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-02 01:17:52 +03:00

Fix connection callbacks called at wrong time

This commit is contained in:
Aris Adamantiadis
2011-01-10 12:14:26 +01:00
parent d631ce32ed
commit 076dfb8294
2 changed files with 11 additions and 1 deletions

View File

@@ -370,7 +370,6 @@ int ssh_handle_packets(ssh_session session, int timeout) {
enter_function();
spoll_in=ssh_socket_get_poll_handle_in(session->socket);
spoll_out=ssh_socket_get_poll_handle_out(session->socket);
ssh_poll_add_events(spoll_in, POLLIN | POLLERR);
ctx=ssh_poll_get_ctx(spoll_in);
if(ctx==NULL){
ctx=ssh_poll_get_default_ctx(session);