mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +02:00
Prevent exceptions in IndividualHost::running
Apparently this might otherwise throw in some situations.
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user