mirror of
https://github.com/espressif/openthread.git
synced 2026-08-16 07:37:47 +00:00
Fix a python sniffer stop method (Remove deadlock). (#1163)
This commit is contained in:
committed by
Jonathan Hui
parent
71f47c105e
commit
02712ffe10
@@ -103,10 +103,11 @@ class Sniffer:
|
||||
""" Stop sniffing. """
|
||||
|
||||
self._thread_alive.clear()
|
||||
self._thread.join()
|
||||
self._thread = None
|
||||
|
||||
self._transport.close()
|
||||
|
||||
self._thread.join()
|
||||
self._thread = None
|
||||
|
||||
def get_messages_sent_by(self, nodeid):
|
||||
""" Get sniffed messages.
|
||||
|
||||
Reference in New Issue
Block a user