Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Aug 23, 2024
1 parent bb6accc commit aed0b83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bbot/core/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,8 +563,8 @@ async def _shutdown(self):

def new_child_task(self, client_id, coro):
task = asyncio.create_task(coro)
def remove_task():
self.child_tasks.get(client_id, set()).discard(task)
def remove_task(t):
self.child_tasks.get(client_id, set()).discard(t)
task.add_done_callback(remove_task)
try:
self.child_tasks[client_id].add(task)
Expand Down

0 comments on commit aed0b83

Please sign in to comment.