From 4e3d32340511c171e9c981993b1c5aab97c3efea Mon Sep 17 00:00:00 2001 From: discomfitor Date: Tue, 6 Dec 2011 05:14:03 +0000 Subject: [PATCH] last ssl bugger git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@65938 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore_con/ecore_con_socks.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/ecore_con/ecore_con_socks.c b/src/lib/ecore_con/ecore_con_socks.c index f3c241e..c02022c 100644 --- a/src/lib/ecore_con/ecore_con_socks.c +++ b/src/lib/ecore_con/ecore_con_socks.c @@ -152,8 +152,9 @@ ecore_con_socks_read(Ecore_Con_Server *svr, unsigned char *buf, int num) svr->ecs_recvbuf = NULL; svr->ecs_buf_offset = svr->ecs_addrlen = 0; memset(svr->ecs_addr, 0, sizeof(svr->ecs_addr)); - ecore_con_event_server_add(svr); - if (svr->buf && eina_binbuf_length_get(svr->buf)) + if (!svr->ssl_state) + ecore_con_event_server_add(svr); + if (svr->ssl_state || (svr->buf && eina_binbuf_length_get(svr->buf))) ecore_main_fd_handler_active_set(svr->fd_handler, ECORE_FD_READ | ECORE_FD_WRITE); } return; -- 2.7.4