uses threading.Thread.is_alive instead of isAlive
The method threading.Thread.isAlive has been removed in Python 3. See [Python's threading docs](https://docs.python.org/3/library/threading.html#threading.Thread.is_alive).
This commit is contained in:
parent
f6a3c25cde
commit
250cf82a32
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ class CoAP(object):
|
|||
if opt.value == 26:
|
||||
return
|
||||
|
||||
if self._receiver_thread is None or not self._receiver_thread.isAlive():
|
||||
if self._receiver_thread is None or not self._receiver_thread.is_alive():
|
||||
self._receiver_thread = threading.Thread(target=self.receive_datagram)
|
||||
self._receiver_thread.daemon = True
|
||||
self._receiver_thread.start()
|
||||
|
|
Loading…
Reference in a new issue