Skip to content

Commit

Permalink
fixup! Added slideshow based screensaver.
Browse files Browse the repository at this point in the history
  • Loading branch information
gbooker committed Feb 13, 2019
1 parent a0f0d79 commit 45a3458
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions lib/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,17 +360,16 @@ def day(self):

class Cron(threading.Thread):
def __init__(self, interval):
threading.Thread.__init__(self, name='CRON')
self.stopped = threading.Event()
self.force = threading.Event()
self.interval = interval
self._lastHalfHour = self._getHalfHour()
self._receivers = []

global CRON

if CRON == None:
threading.Thread.__init__(self, name='CRON')
self.stopped = threading.Event()
self.force = threading.Event()
self.interval = interval
self._lastHalfHour = self._getHalfHour()
self._receivers = []

CRON = self
CRON = self

def __enter__(self):
self.start()
Expand Down Expand Up @@ -470,7 +469,7 @@ class AdvancedSettings(object):
("auto_seek", True),
("dynamic_timeline_seek", False),
("fast_back", False),
("screensaver_quiz", False)
("screensaver_quiz", False),
)

def __init__(self):
Expand Down

0 comments on commit 45a3458

Please sign in to comment.