ecore_con: make disconnects work on Windows.

This commit is contained in:
Guillaume Friloux 2015-01-30 14:16:59 +01:00 committed by Cedric BAIL
parent 388f8fbcaa
commit 211d54dc8e
1 changed files with 7 additions and 0 deletions

View File

@ -572,6 +572,9 @@ ecore_con_server_del(Ecore_Con_Server *obj)
if (!svr || svr->delete_me)
return NULL;
#ifdef _WIN32
WSASendDisconnect(svr->fd, NULL);
#endif
_ecore_con_server_kill(obj);
return svr->data;
}
@ -885,6 +888,10 @@ ecore_con_client_del(Ecore_Con_Client *obj)
Ecore_Con_Client_Data *cl = eo_data_scope_get(obj, ECORE_CON_CLIENT_CLASS);
if (!cl) return NULL;
#ifdef _WIN32
WSASendDisconnect(cl->fd, NULL);
#endif
_ecore_con_client_kill(obj);
return cl->data;
}