summaryrefslogtreecommitdiff
path: root/mpv.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-03-26 14:05:41 +0100
committerjaseg <git@jaseg.de>2022-03-26 14:23:04 +0100
commit518421a1271b79bc82e1cd0555a63abf2c1a978c (patch)
tree20b5d044561c440d15b7441397c24d63436ed195 /mpv.py
parent1f59cfa07246c993737b25857fd01421b2da8bbd (diff)
downloadpython-mpv-518421a1271b79bc82e1cd0555a63abf2c1a978c.tar.gz
python-mpv-518421a1271b79bc82e1cd0555a63abf2c1a978c.tar.bz2
python-mpv-518421a1271b79bc82e1cd0555a63abf2c1a978c.zip
use daemon = True instead of setDaemon
Diffstat (limited to 'mpv.py')
-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