[tasks] Reset iteration count when loop terminates.
This commit is contained in:
parent
8c353a5596
commit
bcdecd4e07
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user