change to wait for abort in case someone tries to close Kodi

This commit is contained in:
Rob Weber 2019-08-09 10:01:53 -05:00
parent 181654b414
commit c9415cbf59

View File

@ -25,7 +25,7 @@ class BackupScheduler:
if(self.enabled == "true"): if(self.enabled == "true"):
#sleep for 2 minutes so Kodi can start and time can update correctly #sleep for 2 minutes so Kodi can start and time can update correctly
xbmc.sleep(1000 * 120) xbmc.Monitor().waitForAbort(120)
nr = 0 nr = 0
if(xbmcvfs.exists(self.next_run_path)): if(xbmcvfs.exists(self.next_run_path)):