1
0
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:
Ralf Ramsauer 2015-09-22 17:48:30 +02:00
parent 4581e4da20
commit a06a2669e5

View File

@ -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;
}