Browse Source

When service started, only notify waiting dependents

Davin McCall 1 year ago
parent
commit
db32243616
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/service.cc

+ 4 - 2
src/service.cc

@@ -416,8 +416,10 @@ void service_record::started() noexcept
 
     // Notify any dependents whose desired state is STARTED:
     for (auto dept : dependents) {
-        dept->get_from()->dependency_started();
-        dept->waiting_on = false;
+        if (dept->waiting_on) {
+            dept->get_from()->dependency_started();
+            dept->waiting_on = false;
+        }
     }
 }