diff options
| author | 2020-08-29 19:54:27 +0200 | |
|---|---|---|
| committer | 2020-08-29 19:54:27 +0200 | |
| commit | 6c98df046c535282c6d4b194b0766afcddbdf669 (patch) | |
| tree | 4eca0027717c07ed53b8e8e9fa78e4b960300620 | |
| parent | Verification: denote `_maybe_start_tasks` as private (diff) | |
Verification: set 'tasks_running' to 0 on suspicious 403s
Prevent the tasks from starting again if the bot restarts.
| -rw-r--r-- | bot/cogs/verification.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/cogs/verification.py b/bot/cogs/verification.py index 5c8962577..08f7c282e 100644 --- a/bot/cogs/verification.py +++ b/bot/cogs/verification.py @@ -307,6 +307,7 @@ class Verification(Cog): await request(member) except StopExecution as stop_execution: await self._alert_admins(stop_execution.reason) + await self.task_cache.set("tasks_running", 0) self._stop_tasks(gracefully=True) # Gracefully finish current iteration, then stop break except discord.HTTPException as http_exc: |