summaryrefslogtreecommitdiff
path: root/src/socket.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-09-01 03:35:04 +0200
committerLennart Poettering <lennart@poettering.net>2010-09-01 03:35:04 +0200
commit18ffdfda48c327f56cac0aabdc6bada91cc9b7df (patch)
tree112ed572c2c55e60a89dbd0179f416e2c59f9bfa /src/socket.c
parent8f6df3fa98ee74eaf5c34dddd272d2e3c10c3c27 (diff)
unit: unify some code
Diffstat (limited to 'src/socket.c')
-rw-r--r--src/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket.c b/src/socket.c
index fd975fd99b..34068b9192 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -1167,7 +1167,7 @@ static void socket_enter_running(Socket *s, int cfd) {
/* We don't take connections anymore if we are supposed to
* shut down anyway */
- if (s->meta.job && s->meta.job->type == JOB_STOP) {
+ if (unit_pending_inactive(UNIT(s))) {
if (cfd >= 0)
close_nointr_nofail(cfd);
else {