FIX: Exit card reader thread immediately

This commit is contained in:
Dominique Barton 2019-02-27 21:45:38 +01:00
parent 4b89b51614
commit 77ec174903

View file

@ -21,8 +21,14 @@ LOGGER = getLogger(__name__)
class CardReader(Thread):
'''
Thread class which reads RFID cards from the RFID reader.
Thread which reads RFID cards from the RFID reader.
Because the RFID reader algorithm is reacting to an IRQ (interrupt), it is
blocking as long as no card is touched, even when Mopidy is exiting. Thus,
we're running the thread as daemon thread, which means it's exiting at the
same moment as the main thread (aka Mopidy core) is exiting.
'''
daemon = True
latest = None
@staticmethod