fix some random error cases where events would fire too fast and cause a segv
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 28 Oct 2010 10:59:30 +0000 (10:59 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 28 Oct 2010 10:59:30 +0000 (10:59 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@53952 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_con/ecore_con.c

index 3095fd6..a8f2931 100644 (file)
@@ -1822,6 +1822,7 @@ _ecore_con_cl_handler(void *data, Ecore_Fd_Handler *fd_handler)
         if (ecore_con_ssl_server_init(svr))
           {
              ERR("ssl handshaking failed!");
+             svr->handshaking = EINA_FALSE;
              Ecore_Con_Event_Server_Del *e;
 
              e = calloc(1, sizeof(Ecore_Con_Event_Server_Del));
@@ -2167,6 +2168,7 @@ _ecore_con_svr_cl_handler(void *data, Ecore_Fd_Handler *fd_handler)
         if (ecore_con_ssl_client_init(cl))
           {
              ERR("ssl handshaking failed!");
+             cl->handshaking = EINA_FALSE;
              /* we lost our client! */
              Ecore_Con_Event_Client_Del *e;