diff --git a/tinyoscquery/queryservice.py b/tinyoscquery/queryservice.py index edc22ca..1d4ce46 100644 --- a/tinyoscquery/queryservice.py +++ b/tinyoscquery/queryservice.py @@ -32,7 +32,7 @@ def __init__(self, serverName, httpPort, oscPort, oscIp="127.0.0.1") -> None: self._startOSCQueryService() self._advertiseOSCService() self.http_server = OSCQueryHTTPServer(self.root_node, self.host_info, ('', self.httpPort), OSCQueryHTTPHandler) - self.http_thread = threading.Thread(target=self._startHTTPServer) + self.http_thread = threading.Thread(target=self._startHTTPServer, daemon=True) self.http_thread.start() def __del__(self):