Skip to content

Commit

Permalink
setting daemon attribute directly instead of using setDaemon
Browse files Browse the repository at this point in the history
  • Loading branch information
Narendra-Neerukonda authored and boppreh committed Jun 19, 2021
1 parent f047823 commit 46629f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keyboard/_nixcommon.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def start_reading(device):
self.event_queue.put(device.read_event())
for device in self.devices:
thread = Thread(target=start_reading, args=[device])
thread.setDaemon(True)
thread.daemon = True
thread.start()

def read_event(self):
Expand Down

0 comments on commit 46629f7

Please sign in to comment.