Revert "fix: instance detection (#253)"
This reverts commit f5627caf69bf28695d38d76f816178f6b5accc18.
This commit is contained in:
parent
697e652c34
commit
0f37a36b10
@ -65,16 +65,11 @@ int main(int argc, char **arguments)
|
||||
gGuard = std::make_shared<guardpp::guard>("soundux-guard");
|
||||
}
|
||||
|
||||
if (auto other_instance = gGuard->other_instance(); other_instance.has_value() && other_instance.value())
|
||||
if (gGuard->other_instance())
|
||||
{
|
||||
Fancy::fancy.logTime().failure() << "Another Instance is already running!" << std::endl;
|
||||
return 1;
|
||||
}
|
||||
else if (!other_instance.has_value()) // NOLINT
|
||||
{
|
||||
Fancy::fancy.logTime().warning() << "Failed to check for other instances: " << other_instance.error()
|
||||
<< std::endl;
|
||||
}
|
||||
|
||||
gConfig.load();
|
||||
gData.set(gConfig.data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user