diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-13 00:27:27 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-13 00:27:27 +0200 |
commit | ba3e67a78564bf25c5af97ffe2e1a122b193a9cb (patch) | |
tree | 8d47f6a421da2660ac090dd526c387b5fc90e744 /src/timer.c | |
parent | a974d58e83e409a92ca916bb9bbce0e457ea896f (diff) |
socket: when the socket is supposed to stop, don't accept any connections anymore
Diffstat (limited to 'src/timer.c')
-rw-r--r-- | src/timer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/timer.c b/src/timer.c index 1c7010d120..0d4ed27bb4 100644 --- a/src/timer.c +++ b/src/timer.c @@ -268,6 +268,10 @@ static void timer_enter_running(Timer *t) { assert(t); dbus_error_init(&error); + /* Don't start job if we are supposed to go down */ + if (t->meta.job && t->meta.job->type == JOB_STOP) + return; + if ((r = manager_add_job(t->meta.manager, JOB_START, t->unit, JOB_REPLACE, true, &error, NULL)) < 0) goto fail; |