Skip to content

Commit 45a3458

Browse files
committed
fixup! Added slideshow based screensaver.
1 parent a0f0d79 commit 45a3458

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

lib/util.py

+9-10
Original file line numberDiff line numberDiff line change
@@ -360,17 +360,16 @@ def day(self):
360360

361361
class Cron(threading.Thread):
362362
def __init__(self, interval):
363+
threading.Thread.__init__(self, name='CRON')
364+
self.stopped = threading.Event()
365+
self.force = threading.Event()
366+
self.interval = interval
367+
self._lastHalfHour = self._getHalfHour()
368+
self._receivers = []
369+
363370
global CRON
364371

365-
if CRON == None:
366-
threading.Thread.__init__(self, name='CRON')
367-
self.stopped = threading.Event()
368-
self.force = threading.Event()
369-
self.interval = interval
370-
self._lastHalfHour = self._getHalfHour()
371-
self._receivers = []
372-
373-
CRON = self
372+
CRON = self
374373

375374
def __enter__(self):
376375
self.start()
@@ -470,7 +469,7 @@ class AdvancedSettings(object):
470469
("auto_seek", True),
471470
("dynamic_timeline_seek", False),
472471
("fast_back", False),
473-
("screensaver_quiz", False)
472+
("screensaver_quiz", False),
474473
)
475474

476475
def __init__(self):

0 commit comments

Comments
 (0)