set receiver thread as daemon

This commit is contained in:
Michiel De Witte 2018-03-02 15:42:22 +01:00
parent 94aa766b8f
commit e9a08fa1d9

View file

@ -169,6 +169,7 @@ class CoAP(object):
if self._receiver_thread is None or not self._receiver_thread.isAlive():
self._receiver_thread = threading.Thread(target=self.receive_datagram)
self._receiver_thread.daemon = True
self._receiver_thread.start()
def _start_retransmission(self, transaction, message):