From b0a68b255ea88b1b1b7c7ba2568a1f2589b88706 Mon Sep 17 00:00:00 2001 From: croneter Date: Mon, 26 Nov 2018 07:54:32 +0100 Subject: [PATCH] Fix NameError --- resources/lib/kodimonitor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/lib/kodimonitor.py b/resources/lib/kodimonitor.py index 0ef140ac..f42e8bad 100644 --- a/resources/lib/kodimonitor.py +++ b/resources/lib/kodimonitor.py @@ -170,8 +170,9 @@ class KodiMonitor(xbmc.Monitor): 'path': old['file'], 'resolve': False } - thread = Thread(target=playback.playback_triage, kwargs=kwargs) - thread.start() + task = backgroundthread.FunctionAsTask(playback.playback_triage, + **kwargs) + backgroundthread.BGThreader.addTasksToFront([task]) def _playlist_onadd(self, data): """