Skip to content

Commit

Permalink
Merge pull request #16 from jrowberg/master
Browse files Browse the repository at this point in the history
Change input report processing/reader threads to daemons
  • Loading branch information
rene-aguirre committed Nov 30, 2014
2 parents 86ae17d + bb2b1e7 commit 40b651b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pywinusb/hid/core.py
Expand Up @@ -867,6 +867,7 @@ def __init__(self, hid_object):
threading.Thread.__init__(self)
self.__abort = False
self.hid_object = hid_object
self.daemon = True
self.start()

def abort(self):
Expand Down Expand Up @@ -900,6 +901,7 @@ def __init__(self, hid_object, raw_report_size):
if hid_object and hid_handle and self.raw_report_size \
and self.report_queue:
#only if input reports are available
self.daemon = True
self.start()
else:
hid_object.close()
Expand Down

0 comments on commit 40b651b

Please sign in to comment.