Prevent exceptions in IndividualHost::running

Apparently this might otherwise throw in some situations.
This commit is contained in:
Robbert van der Helm
2021-06-09 13:09:32 +02:00
parent c97595a391
commit d1badcb589
+4 -1
View File
@@ -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() {