dropping my life to fix previously broken mess so people will stop complaining
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 29 Jul 2010 23:42:32 +0000 (23:42 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 29 Jul 2010 23:42:32 +0000 (23:42 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@50663 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_con/ecore_con.c

index 6636c47..d5de4d9 100644 (file)
@@ -773,8 +773,8 @@ ecore_con_client_del(Ecore_Con_Client *cl)
      }
 
    if (cl->client_addr && cl->server &&
-      ((cl->server->type & ECORE_CON_REMOTE_UDP) ||
-       (cl->server->type & ECORE_CON_REMOTE_MCAST)))
+      (((cl->server->type & ECORE_CON_TYPE) == ECORE_CON_REMOTE_UDP) ||
+       ((cl->server->type & ECORE_CON_TYPE) == ECORE_CON_REMOTE_MCAST)))
       free(cl->client_addr);
 
    data = cl->data;
@@ -2080,8 +2080,8 @@ _ecore_con_event_client_data_free(void *data __UNUSED__, void *ev)
 
    if (((e->client->event_count == 0) && (e->client->delete_me)) ||
        ((e->client->server &&
-         (e->client->server->type & ECORE_CON_REMOTE_UDP ||
-          e->client->server->type & ECORE_CON_REMOTE_MCAST))))
+         ((e->client->server->type & ECORE_CON_TYPE) == ECORE_CON_REMOTE_UDP ||
+          (e->client->server->type & ECORE_CON_TYPE) == ECORE_CON_REMOTE_MCAST))))
       ecore_con_client_del(e->client);
 
    free(e);