Patch from Shulga Nikita.

SVN revision: 36846
This commit is contained in:
Cedric BAIL 2008-10-20 11:18:58 +00:00
parent 9517f8f0e0
commit 5015cf3a8d
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ ecore_con_server_add(Ecore_Con_Type compl_type, const char *name, int port,
}
if (bind(svr->fd, (struct sockaddr *)&socket_unix, socket_unix_len) < 0)
{
if ((type == ECORE_CON_LOCAL_USER) || (type == ECORE_CON_LOCAL_SYSTEM) &&
if (((type == ECORE_CON_LOCAL_USER) || (type == ECORE_CON_LOCAL_SYSTEM)) &&
(connect(svr->fd, (struct sockaddr *)&socket_unix, socket_unix_len) < 0) &&
(unlink(buf) >= 0))
goto start;