handle AGENT_ERROR disconnect reason (#4339)

This commit is contained in:
Théo Monnom
2026-03-17 23:00:16 -07:00
committed by GitHub
parent 8f984c770a
commit 89410df74c
4 changed files with 10 additions and 3 deletions
+2
View File
@@ -94,6 +94,8 @@ func (s *signalhandler) HandleMessage(msg proto.Message) error {
reason = types.ParticipantCloseReasonUserUnavailable
case livekit.DisconnectReason_USER_REJECTED:
reason = types.ParticipantCloseReasonUserRejected
case livekit.DisconnectReason_AGENT_ERROR:
reason = types.ParticipantCloseReasonAgentError
}
s.params.Logger.Debugw("client leaving room", "reason", reason)
s.params.Participant.HandleLeaveRequest(reason)