* ecore: fix obvious bug. But Ecore_Con with UDP session is

completly broken and no time to fix it.

	Try elixir sample code:
	http://code.google.com/p/freebox-elixir/source/browse/#svn%2Ftrunk%2Fexemples%2Fecore_con_udp



SVN revision: 55593
This commit is contained in:
Cedric BAIL 2010-12-16 13:08:49 +00:00
parent d19ff43b6e
commit 8a4ad8c102
1 changed files with 3 additions and 1 deletions

View File

@ -2005,7 +2005,7 @@ _ecore_con_svr_udp_handler(void *data,
{
if (!svr->delete_me)
{
/* we lost our client! */
/* we lost our client! */
Ecore_Con_Event_Client_Del *e;
e = calloc(1, sizeof(Ecore_Con_Event_Client_Del));
@ -2361,6 +2361,8 @@ _ecore_con_event_client_del_free(void *data __UNUSED__,
Ecore_Con_Event_Client_Del *e;
e = ev;
if (!e->client) return ;
e->client->event_count--;
if ((e->client->event_count <= 0) && (e->client->delete_me))
ecore_con_client_del(e->client);