From bcdecd4e0775d0f27692574dd43634b1b259eeec Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sun, 12 May 2019 00:49:19 -0400 Subject: [PATCH] [tasks] Reset iteration count when loop terminates. --- discord/ext/tasks/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/discord/ext/tasks/__init__.py b/discord/ext/tasks/__init__.py index 537819600..e0f5af335 100644 --- a/discord/ext/tasks/__init__.py +++ b/discord/ext/tasks/__init__.py @@ -86,6 +86,7 @@ class Loop: finally: await self._call_loop_function('after_loop') self._is_being_cancelled = False + self._current_loop = 0 def __get__(self, obj, objtype): if obj is None: