From e9a08fa1d9e2b06c96841e97309d14fae74e317c Mon Sep 17 00:00:00 2001 From: Michiel De Witte Date: Fri, 2 Mar 2018 15:42:22 +0100 Subject: [PATCH] set receiver thread as daemon --- coapthon/client/coap.py | 1 + 1 file changed, 1 insertion(+) diff --git a/coapthon/client/coap.py b/coapthon/client/coap.py index 471282e..d2bed4c 100644 --- a/coapthon/client/coap.py +++ b/coapthon/client/coap.py @@ -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):