Skip to content

Commit

Permalink
fix: disconnect event may now have some arguments (#668)
Browse files Browse the repository at this point in the history
  • Loading branch information
theomonnom authored Aug 23, 2024
1 parent f7cc1ff commit b2197b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/cuddly-steaks-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"livekit-agents": patch
---

fix: disconnect event may now have a arguments
2 changes: 1 addition & 1 deletion livekit-agents/livekit/agents/ipc/proc_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def _start_job(
request_shutdown_fut = asyncio.Future[_ShutdownInfo]()

@room.on("disconnected")
def _on_room_disconnected():
def _on_room_disconnected(*args):
with contextlib.suppress(asyncio.InvalidStateError):
request_shutdown_fut.set_result(
_ShutdownInfo(user_initiated=False, reason="room disconnected")
Expand Down

0 comments on commit b2197b1

Please sign in to comment.