Browse Source

[tasks] fix regular task loops

pull/6893/head
Sebastian Law 4 years ago
committed by GitHub
parent
commit
f5727ff0d0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      discord/ext/tasks/__init__.py

3
discord/ext/tasks/__init__.py

@ -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…
Cancel
Save