diff options
| author | Rapptz <[email protected]> | 2019-05-12 00:49:19 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-05-12 00:49:19 -0400 |
| commit | bcdecd4e0775d0f27692574dd43634b1b259eeec (patch) | |
| tree | f79ad33090fe59b1c84411b7073c6a689a05448a | |
| parent | Change version to v1.2.0a for development purposes. (diff) | |
| download | discord.py-bcdecd4e0775d0f27692574dd43634b1b259eeec.tar.xz discord.py-bcdecd4e0775d0f27692574dd43634b1b259eeec.zip | |
[tasks] Reset iteration count when loop terminates.
| -rw-r--r-- | discord/ext/tasks/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/discord/ext/tasks/__init__.py b/discord/ext/tasks/__init__.py index 53781960..e0f5af33 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: |