Skip to content

Commit

Permalink
Make worker thread daemonic - fixes #5
Browse files Browse the repository at this point in the history
  • Loading branch information
rm-hull committed May 26, 2017
1 parent fea8821 commit 2055a98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions OPi/event.py
Expand Up @@ -19,6 +19,7 @@ class _worker(threading.Thread):
# TODO: implement bouncetime
def __init__(self, pin, trigger, callback=None):
super(_worker, self).__init__()
self.daemon = True
self._pin = pin
self._trigger = trigger
self._event_detected = False
Expand Down

0 comments on commit 2055a98

Please sign in to comment.