Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
m5l14i11 committed Oct 11, 2024
1 parent 6bb1680 commit 4d5089f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/actors/_feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ def collector(self) -> "DataCollector":
return self._collector

def on_stop(self):
asyncio.create_task(self.collector.stop())
stop_task = asyncio.create_task(self.collector.stop())
self._tasks.add(stop_task)
stop_task.add_done_callback(self._tasks.discard)

def pre_receive(self, msg) -> bool:
return FeedPolicy.should_process(self, msg)
Expand Down

0 comments on commit 4d5089f

Please sign in to comment.