diff --git a/SnifferAPI/UART.py b/SnifferAPI/UART.py index bcae188..8360a2c 100644 --- a/SnifferAPI/UART.py +++ b/SnifferAPI/UART.py @@ -140,7 +140,7 @@ def __init__(self, portnum=None, baudrate=None): self.worker_thread = Thread(target=self._read_worker) self.reading = True - self.worker_thread.setDaemon(True) + self.worker_thread.daemon = True self.worker_thread.start() def _read_worker(self):