mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
[tasks] fix regular task loops
This commit is contained in:
parent
757cfad38f
commit
f5727ff0d0
@ -151,8 +151,9 @@ class Loop:
|
||||
|
||||
now = datetime.datetime.now(datetime.timezone.utc)
|
||||
if now > self._next_iteration:
|
||||
self._prepare_time_index(now)
|
||||
self._next_iteration = now
|
||||
if self._time is not None:
|
||||
self._prepare_time_index(now)
|
||||
|
||||
self._current_loop += 1
|
||||
if self._current_loop == self.count:
|
||||
|
Loading…
x
Reference in New Issue
Block a user