map PEER_CONNECTION_DISCONNECTED -> CONNECTION_TIMEOUT (#3591)

This commit is contained in:
Raja Subramanian
2025-04-08 00:00:10 +05:30
committed by GitHub
parent 6ee6eb43fc
commit e24fe77bc7
3 changed files with 22 additions and 22 deletions
+1 -1
View File
@@ -184,7 +184,7 @@ func (p ParticipantCloseReason) ToDisconnectReason() livekit.DisconnectReason {
// expected to be connected but is not
return livekit.DisconnectReason_JOIN_FAILURE
case ParticipantCloseReasonPeerConnectionDisconnected:
return livekit.DisconnectReason_STATE_MISMATCH
return livekit.DisconnectReason_CONNECTION_TIMEOUT
case ParticipantCloseReasonDuplicateIdentity, ParticipantCloseReasonStale:
return livekit.DisconnectReason_DUPLICATE_IDENTITY
case ParticipantCloseReasonMigrationRequested, ParticipantCloseReasonMigrationComplete, ParticipantCloseReasonSimulateMigration: