Skip to content

Commit 2e4895c

Browse files
LumabotsDA-344
andauthored
Update discord/ext/tasks/__init__.py
Co-authored-by: DA344 <[email protected]> Signed-off-by: Lumouille <[email protected]>
1 parent 68e4de5 commit 2e4895c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/ext/tasks/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ async def run_with_semaphore():
200200
),
201201
name=f"pycord-loop-{self.coro.__name__}-{self._current_loop}",
202202
)
203-
task.add_done_callback(lambda t: self._tasks.discard(t))
203+
task.add_done_callback(self._tasks.discard)
204204
self._tasks.add(task)
205205

206206
_current_loop_ctx.reset(token)

0 commit comments

Comments
 (0)