[tasks] Reset iteration count when loop terminates.

This commit is contained in:
Rapptz 2019-05-12 00:49:19 -04:00
parent 8c353a5596
commit bcdecd4e07

View File

@ -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: