mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-17 04:07:01 +00:00
[tasks] Reset iteration count when loop terminates.
This commit is contained in:
@@ -86,6 +86,7 @@ class Loop:
|
|||||||
finally:
|
finally:
|
||||||
await self._call_loop_function('after_loop')
|
await self._call_loop_function('after_loop')
|
||||||
self._is_being_cancelled = False
|
self._is_being_cancelled = False
|
||||||
|
self._current_loop = 0
|
||||||
|
|
||||||
def __get__(self, obj, objtype):
|
def __get__(self, obj, objtype):
|
||||||
if obj is None:
|
if obj is None:
|
||||||
|
Reference in New Issue
Block a user