Skip to content

Commit 6a1d39f

Browse files
committed
Stop popped fetchers as well
Signed-off-by: Sahas Subramanian <[email protected]>
1 parent 2c41486 commit 6a1d39f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/frequenz/sdk/timeseries/battery_pool/_methods.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ def _remove_metric_fetcher(self, component_id: int) -> None:
189189
component_id,
190190
self._result_channel._name, # pylint: disable=protected-access
191191
)
192-
self._fetchers.pop(component_id)
192+
fetcher = self._fetchers.pop(component_id)
193+
fetcher.stop()
193194

194195
def _metric_updated(self, new_metrics: ComponentMetricsData) -> bool:
195196
cid = new_metrics.component_id

0 commit comments

Comments
 (0)