From 34529471a77d3004020812628a004171fd8daf67 Mon Sep 17 00:00:00 2001 From: Rob Weber Date: Mon, 19 Aug 2019 14:26:15 -0500 Subject: [PATCH] use monitor.abortRequested() --- scheduler.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scheduler.py b/scheduler.py index 01c5241..aebdd21 100644 --- a/scheduler.py +++ b/scheduler.py @@ -3,7 +3,6 @@ import xbmcvfs import xbmcgui import datetime import time -import os import resources.lib.utils as utils from resources.lib.croniter import croniter from resources.lib.backup import XbmcBackup @@ -66,7 +65,7 @@ class BackupScheduler: restore.skipAdvanced() restore.run(XbmcBackup.Restore) - while(not xbmc.abortRequested): + while(not self.monitor.abortRequested()): if(self.enabled == "true"): #scheduler is still on