From 479e92cadf5f0a63d986bd8986c3295ba0e41b54 Mon Sep 17 00:00:00 2001 From: Davin McCall Date: Tue, 17 Nov 2015 18:58:22 +0000 Subject: [PATCH] Fix bug: "internal" services never properly registered that they had stopped. --- service.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/service.cc b/service.cc index fd47212..78dbe57 100644 --- a/service.cc +++ b/service.cc @@ -383,9 +383,6 @@ bool ServiceRecord::start_ps_process(const std::vector &pargs) noex } } - - - // Mark this and all dependent services as force-stopped. void ServiceRecord::forceStop() { @@ -507,10 +504,13 @@ void ServiceRecord::stopping() stopped(); } } - else { + else if (service_type == ServiceType::SCRIPTED) { // Scripted service. start_ps_process(std::vector(1, "stop")); - } + } + else { + stopped(); + } } void ServiceSet::service_active(ServiceRecord *sr) -- 2.25.1