mirror of
https://github.com/binary-kitchen/doorlockd
synced 2024-12-22 02:14:26 +01:00
Check if logic is running
This commit is contained in:
parent
4581e4da20
commit
a06a2669e5
@ -178,8 +178,10 @@ int main(int argc, char** argv)
|
||||
retval = 0;
|
||||
|
||||
out:
|
||||
l(LogLevel::info, "Stopping Doorlock Logic");
|
||||
logic.reset();
|
||||
if (logic) {
|
||||
l(LogLevel::info, "Stopping Doorlock Logic");
|
||||
logic.reset();
|
||||
}
|
||||
l(LogLevel::notice, "Doorlockd stopped");
|
||||
return retval;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user