set receiver thread as daemon
This commit is contained in:
parent
94aa766b8f
commit
e9a08fa1d9
1 changed files with 1 additions and 0 deletions
|
@ -169,6 +169,7 @@ class CoAP(object):
|
||||||
|
|
||||||
if self._receiver_thread is None or not self._receiver_thread.isAlive():
|
if self._receiver_thread is None or not self._receiver_thread.isAlive():
|
||||||
self._receiver_thread = threading.Thread(target=self.receive_datagram)
|
self._receiver_thread = threading.Thread(target=self.receive_datagram)
|
||||||
|
self._receiver_thread.daemon = True
|
||||||
self._receiver_thread.start()
|
self._receiver_thread.start()
|
||||||
|
|
||||||
def _start_retransmission(self, transaction, message):
|
def _start_retransmission(self, transaction, message):
|
||||||
|
|
Loading…
Reference in a new issue