Skip to content

Commit

Permalink
make sure to use the new _delete_tasks dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
falkoschindler committed Jan 31, 2025
1 parent d0f52ae commit 8147bd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nicegui/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ async def delete_content() -> None:
self._num_connections.pop(socket_id)
if not self.shared:
self.delete()
self._delete_task = background_tasks.create(delete_content())
self._delete_tasks[socket_id] = background_tasks.create(delete_content())

def _cancel_delete_task(self, socket_id: str) -> None:
if socket_id in self._delete_tasks:
Expand Down

0 comments on commit 8147bd5

Please sign in to comment.