Avoid issuing do_stop twice when a process service process exits.
authorDavin McCall <davmac@davmac.org>
Fri, 15 Jun 2018 16:20:26 +0000 (17:20 +0100)
committerDavin McCall <davmac@davmac.org>
Fri, 15 Jun 2018 16:20:26 +0000 (17:20 +0100)
Probably it's harmless, but we may as well avoid it.

src/proc-service.cc

index f2e0b0df9cc3b2ee92452f317a200afe95dcf203..46034df8583818d4fa9c87a72dbc31e661841f78 100644 (file)
@@ -275,7 +275,7 @@ void bgproc_service::handle_exit_status(bp_sys::exit_status exit_status) noexcep
         }
         if (! do_auto_restart() && start_explicit) {
             start_explicit = false;
-            release();
+            release(false);
         }
         forced_stop();
         stop_dependents();