[systemd-commits] src/core

Kay Sievers kay at kemper.freedesktop.org
Sun Nov 24 10:20:55 PST 2013


 src/core/manager.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 828db5d84afbf4e6e7060b5da170114a5886b339
Author: Kay Sievers <kay at vrfy.org>
Date:   Sun Nov 24 19:18:36 2013 +0100

    core: set finish_timestamp only after all jobs have finished

diff --git a/src/core/manager.c b/src/core/manager.c
index f2f473b..b50182b 100644
--- a/src/core/manager.c
+++ b/src/core/manager.c
@@ -2275,8 +2275,9 @@ void manager_check_finished(Manager *m) {
         if (m->n_running_jobs == 0)
                 m->jobs_in_progress_event_source = sd_event_source_unref(m->jobs_in_progress_event_source);
 
-        if (hashmap_size(m->jobs) > 0 && m->jobs_in_progress_event_source) {
-                sd_event_source_set_time(m->jobs_in_progress_event_source, JOBS_IN_PROGRESS_PERIOD_SEC);
+        if (hashmap_size(m->jobs) > 0) {
+                if (m->jobs_in_progress_event_source)
+                        sd_event_source_set_time(m->jobs_in_progress_event_source, JOBS_IN_PROGRESS_PERIOD_SEC);
                 return;
         }
 



More information about the systemd-commits mailing list