Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ring_doorbell/webrtcstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ async def _close(self, *, closed_by_self: bool) -> None:
await websocket.close()
if read_task := self.read_task:
self.read_task = None
if not read_task.done():
if not read_task.done() and read_task is not asyncio.current_task():
await read_task

async def handle_message(self, message_str: str) -> None: # noqa: C901, PLR0912
Expand Down