Sebastian Law
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
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: |
|
|
|