File tree 1 file changed +9
-10
lines changed
1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -360,17 +360,16 @@ def day(self):
360
360
361
361
class Cron (threading .Thread ):
362
362
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
+
363
370
global CRON
364
371
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
374
373
375
374
def __enter__ (self ):
376
375
self .start ()
@@ -470,7 +469,7 @@ class AdvancedSettings(object):
470
469
("auto_seek" , True ),
471
470
("dynamic_timeline_seek" , False ),
472
471
("fast_back" , False ),
473
- ("screensaver_quiz" , False )
472
+ ("screensaver_quiz" , False ),
474
473
)
475
474
476
475
def __init__ (self ):
You can’t perform that action at this time.
0 commit comments