From d1badcb58977e76db8559871a8fe185d2d5e4692 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Wed, 9 Jun 2021 13:09:32 +0200 Subject: [PATCH] Prevent exceptions in IndividualHost::running Apparently this might otherwise throw in some situations. --- src/plugin/host-process.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugin/host-process.cpp b/src/plugin/host-process.cpp index b5932523..8190909a 100644 --- a/src/plugin/host-process.cpp +++ b/src/plugin/host-process.cpp @@ -97,7 +97,10 @@ fs::path IndividualHost::path() { } bool IndividualHost::running() noexcept { - return host.running(); + std::error_code error{}; + const bool running = host.running(error); + + return running && !error; } void IndividualHost::terminate() {