From 518421a1271b79bc82e1cd0555a63abf2c1a978c Mon Sep 17 00:00:00 2001 From: jaseg Date: Sat, 26 Mar 2022 14:05:41 +0100 Subject: use daemon = True instead of setDaemon --- mpv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpv.py b/mpv.py index a125d45..54c2dc1 100644 --- a/mpv.py +++ b/mpv.py @@ -849,7 +849,7 @@ class MPV(object): self.set_loglevel(loglevel or 'terminal-default') if start_event_thread: self._event_thread = threading.Thread(target=self._loop, name='MPVEventHandlerThread') - self._event_thread.setDaemon(True) + self._event_thread.daemon = True self._event_thread.start() else: self._event_thread = None -- cgit