Skip to content

Commit

Permalink
Check if setup task is actually still running (#874)
Browse files Browse the repository at this point in the history
  • Loading branch information
agners committed Sep 4, 2024
1 parent 17b2699 commit 5c130ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions matter_server/server/device_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -1424,6 +1424,7 @@ def _setup_node_create_task(self, node_id: int) -> asyncio.Task | None:
node_logger.debug("Setup task exists already for this Node")
return None
task = asyncio.create_task(self._setup_node(node_id))
task.add_done_callback(lambda _: self._setup_node_tasks.pop(node_id, None))
self._setup_node_tasks[node_id] = task
return task

Expand Down

0 comments on commit 5c130ec

Please sign in to comment.