Fix the list emptying logic.
[platform/core/appfw/notification-service.git] / service_common.c
index db79011..b53d1ff 100644 (file)
@@ -575,18 +575,6 @@ struct service_context *service_common_create(const char *addr, int (*service_th
                return NULL;
        }
 
-    /* 
-     * cleanup old socket file
-     */
-    struct stat tmp;
-    if (!stat(addr, &tmp)) {
-        if (unlink(addr)) {
-            perror("Unable to unlink old socket file");
-            free(svc_ctx);
-            return NULL;
-        }
-    }
-
        svc_ctx->fd = secure_socket_create_server(addr);
        if (svc_ctx->fd < 0) {
                free(svc_ctx);