From b30a4942175477678b379fe2d411623caf771987 Mon Sep 17 00:00:00 2001 From: Katelyn Gigante Date: Thu, 15 Sep 2022 03:21:30 +1000 Subject: [PATCH] fix: Correctly reschedule tasks when they return a new trigger (#642) --- naff/models/naff/tasks/task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/naff/models/naff/tasks/task.py b/naff/models/naff/tasks/task.py index 30e7c5ca7..c7f362e88 100644 --- a/naff/models/naff/tasks/task.py +++ b/naff/models/naff/tasks/task.py @@ -84,7 +84,7 @@ async def __call__(self) -> None: val = self.callback() if isinstance(val, BaseTrigger): - self.trigger = val + self.reschedule(val) except Exception as e: self.on_error(e)