Skip to content

Commit 2053db2

Browse files
MarenzCopilot
andauthored
Update src/frequenz/client/base/streaming.py
Co-authored-by: Copilot <[email protected]> Signed-off-by: Mathias L. Baumann <[email protected]>
1 parent a696d43 commit 2053db2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/frequenz/client/base/streaming.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ def reconnect(self) -> None:
8888
self._stream_name,
8989
)
9090
self._task.cancel()
91+
try:
92+
await self._task
93+
except asyncio.CancelledError:
94+
pass
9195
self._task = asyncio.create_task(self._run())
9296

9397
@property

0 commit comments

Comments
 (0)