chiark / gitweb /
service: actually delay auto-restart if another job is pending
[elogind.git] / src / core / service.c
index 2bd29ff7e6333254adbf3c54f2a0143a67ace7c7..4f0375465986680f6be34e911f7e712b327dbaed 100644 (file)
@@ -2232,6 +2232,8 @@ static void service_enter_restart(Service *s) {
 
                 if ((r = unit_watch_timer(UNIT(s), s->restart_usec, &s->timer_watch)) < 0)
                         goto fail;
+
+                return;
         }
 
         /* Any units that are bound to this service must also be