mirror of
https://github.com/espressif/openthread.git
synced 2026-08-12 13:47:47 +00:00
[otci] fix the setDaemon() is deprecated warning (#10409)
The otci reports warning `DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead`. This commit updates the otci to fix this warning.
This commit is contained in:
@@ -105,8 +105,7 @@ class OtCliCommandRunner(OTCommandHandler):
|
||||
|
||||
self.__pending_lines = queue.Queue()
|
||||
self.__should_close = threading.Event()
|
||||
self.__otcli_reader = threading.Thread(target=self.__otcli_read_routine)
|
||||
self.__otcli_reader.setDaemon(True)
|
||||
self.__otcli_reader = threading.Thread(target=self.__otcli_read_routine, daemon=True)
|
||||
self.__otcli_reader.start()
|
||||
|
||||
def __repr__(self):
|
||||
|
||||
Reference in New Issue
Block a user