diff --git a/src/core/service.c b/src/core/service.c index 887b1c8514c..008e81437d5 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -180,9 +180,6 @@ static int service_set_main_pid(Service *s, pid_t pid) { static void service_close_socket_fd(Service *s) { assert(s); - if (s->socket_fd < 0) - return; - s->socket_fd = asynchronous_close(s->socket_fd); }