mirror of
https://github.com/binary-kitchen/doorlockd
synced 2024-12-22 10:24: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;
|
retval = 0;
|
||||||
|
|
||||||
out:
|
out:
|
||||||
l(LogLevel::info, "Stopping Doorlock Logic");
|
if (logic) {
|
||||||
logic.reset();
|
l(LogLevel::info, "Stopping Doorlock Logic");
|
||||||
|
logic.reset();
|
||||||
|
}
|
||||||
l(LogLevel::notice, "Doorlockd stopped");
|
l(LogLevel::notice, "Doorlockd stopped");
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user