From ea95450333f0636dbdda4d785ce206d3608cd2ee Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Fri, 27 Nov 2020 09:26:40 -0500 Subject: [PATCH] [O] Stop scheduler before removing a task --- src/commands.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands.py b/src/commands.py index b100eb3..768b50a 100644 --- a/src/commands.py +++ b/src/commands.py @@ -127,6 +127,7 @@ def rm(update: Update, context: CallbackContext): return "%s doesn't exist, nothing changed." % name # Remove + scheduler.stop(user, name) database.reqs[user].pop(name, None) database.save()