mirror of
https://github.com/espressif/openthread.git
synced 2026-06-05 21:14:49 +00:00
[style] avoid deprecated setDaemon (#11565)
This commit is contained in:
@@ -261,7 +261,7 @@ class SimSniffer(ISniffer):
|
||||
raise RuntimeError('startSniffer error: %s' % sniffer_pb2.Status.Name(response.status))
|
||||
|
||||
self._thread = threading.Thread(target=self._file_sync_main_loop)
|
||||
self._thread.setDaemon(True)
|
||||
self._thread.daemon = True
|
||||
self._thread.start()
|
||||
|
||||
self.is_active = True
|
||||
|
||||
@@ -115,7 +115,7 @@ class SnifferServicer(sniffer_pb2_grpc.Sniffer):
|
||||
|
||||
# Start the sniffer main loop thread
|
||||
self._thread = threading.Thread(target=self._sniffer_main_loop)
|
||||
self._thread.setDaemon(True)
|
||||
self._thread.daemon = True
|
||||
self._transport.open()
|
||||
self._thread_alive.set()
|
||||
self._thread.start()
|
||||
|
||||
Reference in New Issue
Block a user