aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-02-29 15:45:23 -0800
committerGravatar MarkKoz <[email protected]>2020-03-22 15:54:44 -0700
commita3f67c5361f1acb8f4aa022b7a59209c2f175412 (patch)
treee64adb11983baf5768319273069fa8a33462b40d /Dockerfile
parentHelpChannels: fix unawaited coro warning (diff)
HelpChannels: fix unawaited coro warning for set_permissions
This was happening when attempting to schedule a task twice for a user. Because the scheduler refuses to schedule a duplicate, the coroutine is deallocated right away without being awaited (or closed explicitly by `scheduled_task`). To fix, any existing task is cancelled before scheduling. This also means if somehow a user bypasses the lack of permissions, their cooldown will be updated. However, it probably doesn't make a difference as if they can bypass once, they likely can bypass again.
Diffstat (limited to 'Dockerfile')
0 files changed, 0 insertions, 0 deletions