Skip to content

Commit

Permalink
Actually cancel the emit status task when stopping the actor
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Dec 25, 2024
1 parent 1ff35d1 commit b7fea7e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/lvmecp/actor/actor.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ async def start(self, **kwargs):
async def stop(self, **kwargs):
"""Stops the actor."""

self._emit_status_task = await cancel_task(self._emit_status_task)
await super().stop(**kwargs)
self.running = False

Expand Down

0 comments on commit b7fea7e

Please sign in to comment.