1
0
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:
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; 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;
} }