From 3e754dfd1b6d1d34278470af96878f4fcf1fe02e Mon Sep 17 00:00:00 2001 From: croneter Date: Sat, 24 Nov 2018 09:54:57 +0100 Subject: [PATCH] Fix AttributeError --- resources/lib/kodimonitor.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/lib/kodimonitor.py b/resources/lib/kodimonitor.py index 8c7d2022..75496fa6 100644 --- a/resources/lib/kodimonitor.py +++ b/resources/lib/kodimonitor.py @@ -511,9 +511,8 @@ def _record_playstate(status, ended): xbmc.getCondVisibility('Window.IsVisible(Home.xml)')): LOG.debug('Refreshing skin to update widgets') xbmc.executebuiltin('ReloadSkin()') - thread = Thread(target=_clean_file_table) - thread.setDaemon(True) - thread.start() + task = backgroundthread.FunctionAsTask(_clean_file_table) + backgroundthread.BGThreader.addTasksToFront(task) def _clean_file_table():