Fix a python sniffer stop method (Remove deadlock). (#1163)

This commit is contained in:
Przemysław Fierek
2017-01-18 09:10:30 -08:00
committed by Jonathan Hui
parent 71f47c105e
commit 02712ffe10
+3 -2
View File
@@ -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.