From 937882c3646b6629fceb13d55e6d544fbdad0f9e Mon Sep 17 00:00:00 2001 From: cnderrauber Date: Tue, 5 Jul 2022 11:24:32 +0800 Subject: [PATCH] add negotiate failed to ToDisconnectReason (#809) --- pkg/rtc/types/interfaces.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/rtc/types/interfaces.go b/pkg/rtc/types/interfaces.go index 53bbc6676..a90b481ad 100644 --- a/pkg/rtc/types/interfaces.go +++ b/pkg/rtc/types/interfaces.go @@ -149,6 +149,8 @@ func (p ParticipantCloseReason) ToDisconnectReason() livekit.DisconnectReason { return livekit.DisconnectReason_SERVER_SHUTDOWN case ParticipantCloseReasonSimulateServerLeave: return livekit.DisconnectReason_SERVER_SHUTDOWN + case ParticipantCloseReasonNegotiateFailed: + return livekit.DisconnectReason_STATE_MISMATCH default: // the other types will map to unknown reason return livekit.DisconnectReason_UNKNOWN_REASON