summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mpv.py2
1 files changed, 1 insertions, 1 deletions
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