summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/ecore_con/efl_net_server_unix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_con/efl_net_server_unix.c b/src/lib/ecore_con/efl_net_server_unix.c
index 68f97a7619..473442331f 100644
--- a/src/lib/ecore_con/efl_net_server_unix.c
+++ b/src/lib/ecore_con/efl_net_server_unix.c
@@ -107,16 +107,16 @@ EOLIAN static void
107_efl_net_server_unix_efl_object_destructor(Eo *o, Efl_Net_Server_Unix_Data *pd EINA_UNUSED) 107_efl_net_server_unix_efl_object_destructor(Eo *o, Efl_Net_Server_Unix_Data *pd EINA_UNUSED)
108{ 108{
109 SOCKET fd = efl_loop_fd_get(o); 109 SOCKET fd = efl_loop_fd_get(o);
110 const char *address = efl_net_server_address_get(o);
110 111
111 if (fd != INVALID_SOCKET) 112 if (fd != INVALID_SOCKET)
112 { 113 {
113 const char *address = efl_net_server_address_get(o);
114 if ((address) && 114 if ((address) &&
115 (strncmp(address, "abstract:", strlen("abstract:")) != 0)) 115 (strncmp(address, "abstract:", strlen("abstract:")) != 0))
116 unlink(address); 116 unlink(address);
117 } 117 }
118#ifdef BIND_HANG_WORKAROUND 118#ifdef BIND_HANG_WORKAROUND
119 if ((pd->have_lock_fd) && (pd->lock_fd >= 0)) 119 if ((address) && (pd->have_lock_fd) && (pd->lock_fd >= 0))
120 { 120 {
121 _efl_net_server_unix_bind_hang_lock_workaround 121 _efl_net_server_unix_bind_hang_lock_workaround
122 (address, EINA_FALSE, pd->lock_fd); 122 (address, EINA_FALSE, pd->lock_fd);