service: asynchronous_close() already checks for negative parameters, no need to duplicate that
This commit is contained in:
parent
4c94096027
commit
abb4c1cc01
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue