From 55417a1103b0d4439dc3da40780636a3e41f2c37 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Mon, 7 Nov 2016 22:59:58 +0100 Subject: [PATCH] Reset bas files before site update when changing autodownload status in sidebar --- plugins/Sidebar/SidebarPlugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/Sidebar/SidebarPlugin.py b/plugins/Sidebar/SidebarPlugin.py index 0a0733ff..2055021c 100644 --- a/plugins/Sidebar/SidebarPlugin.py +++ b/plugins/Sidebar/SidebarPlugin.py @@ -580,7 +580,8 @@ class UiWebsocketPlugin(object): if "ADMIN" not in permissions: return self.response(to, "You don't have permission to run this command") self.site.settings["autodownloadoptional"] = bool(owned) - self.site.update(check_files=True) + self.site.bad_files = {} + gevent.spawn(self.site.update, check_files=True) self.site.worker_manager.removeGoodFileTasks() def actionDbReload(self, to):