diff --git a/python_mpv_jsonipc.py b/python_mpv_jsonipc.py index 1d89d50..bed3393 100644 --- a/python_mpv_jsonipc.py +++ b/python_mpv_jsonipc.py @@ -72,6 +72,7 @@ def __init__(self, ipc_socket, callback=None, quit_callback=None): self.callback = lambda data: None threading.Thread.__init__(self) + self.daemon = True def stop(self, join=True): """Terminate the thread.""" @@ -144,6 +145,7 @@ def __init__(self, ipc_socket, callback=None, quit_callback=None): self.callback = lambda data: None threading.Thread.__init__(self) + self.daemon = True def stop(self, join=True): """Terminate the thread.""" @@ -356,6 +358,7 @@ def __init__(self): """Create an instance of the thread.""" self.queue = queue.Queue() threading.Thread.__init__(self) + self.daemon = True def put_task(self, func, *args): """