Fixes re: zognia's testing #2
1 changed files with 2 additions and 2 deletions
|
@ -74,7 +74,7 @@ class CuePlugin(PluginBase):
|
||||||
cue = Cue(repeat, **kwargs)
|
cue = Cue(repeat, **kwargs)
|
||||||
|
|
||||||
async def handler():
|
async def handler():
|
||||||
# Repetion management
|
# Repetition management
|
||||||
if not cue.enabled:
|
if not cue.enabled:
|
||||||
return
|
return
|
||||||
if cue.repeat:
|
if cue.repeat:
|
||||||
|
@ -114,7 +114,7 @@ class CuePlugin(PluginBase):
|
||||||
async def _cleanup(self):
|
async def _cleanup(self):
|
||||||
while True:
|
while True:
|
||||||
await asyncio.sleep(60)
|
await asyncio.sleep(60)
|
||||||
for name, (cue, _) in self.cues.items():
|
for name, (cue, _) in list(self.cues.items()):
|
||||||
if cue.is_obsolete():
|
if cue.is_obsolete():
|
||||||
del self.cues[name]
|
del self.cues[name]
|
||||||
if task := self.tasks.get(name):
|
if task := self.tasks.get(name):
|
||||||
|
|
Loading…
Add table
Reference in a new issue