aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/ext/tasks/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/discord/ext/tasks/__init__.py b/discord/ext/tasks/__init__.py
index dab4b5ea..54b872ba 100644
--- a/discord/ext/tasks/__init__.py
+++ b/discord/ext/tasks/__init__.py
@@ -132,6 +132,7 @@ class Loop:
"""Cancels the internal task, if any are running."""
if self._task:
self._task.cancel()
+ self._task = None
def add_exception_type(self, exc):
r"""Adds an exception type to be handled during the reconnect logic.