diff options
Diffstat (limited to 'src/core/socket.c')
-rw-r--r-- | src/core/socket.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/core/socket.c b/src/core/socket.c index 57f6ab18db..85bd757b7d 100644 --- a/src/core/socket.c +++ b/src/core/socket.c @@ -108,12 +108,7 @@ static void socket_init(Unit *u) { static void socket_unwatch_control_pid(Socket *s) { assert(s); - - if (!pidref_is_set(&s->control_pid)) - return; - - unit_unwatch_pidref(UNIT(s), &s->control_pid); - pidref_done(&s->control_pid); + unit_unwatch_pidref_done(UNIT(s), &s->control_pid); } static void socket_cleanup_fd_list(SocketPort *p) { |