Skip to content

Commit

Permalink
Apply suggestions from review
Browse files Browse the repository at this point in the history
Co-authored-by: David Brochart <[email protected]>
  • Loading branch information
brichet and davidbrochart committed Oct 14, 2024
1 parent 01bf3f3 commit 0d22fce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pycrdt_websocket/yroom.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ async def start(
self._task_group.start_soon(self._stopped.wait)
self._task_group.start_soon(self._watch_ready)
self._task_group.start_soon(self._broadcast_updates)
self._task_group.start_soon(self.awareness.start)
return

async with self._start_lock:
Expand Down Expand Up @@ -241,7 +242,7 @@ async def stop(self) -> None:
if self._task_group is None:
raise RuntimeError("YRoom not running")
self._stopped.set()
self.awareness.stop()
await self.awareness.stop()
self._task_group.cancel_scope.cancel()
self._task_group = None
if self._subscription is not None:
Expand Down

0 comments on commit 0d22fce

Please sign in to comment.