mirror of
https://github.com/brmlab/brmdoor_libnfc.git
synced 2025-08-02 18:33:37 +02:00
Make sure lock pin is pulled down when exiting on interrupt
This commit is contained in:
parent
e181278df5
commit
19721744a0
2 changed files with 16 additions and 0 deletions
|
@ -99,6 +99,7 @@ class NFCScanner(object):
|
|||
logging.info("Exiting on keyboard interrupt")
|
||||
self.nfc.close()
|
||||
self.nfc.unload()
|
||||
self.unlocker.lock()
|
||||
sys.exit(2)
|
||||
except Exception:
|
||||
logging.exception("Exception in main unlock thread")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue