From 26975ef057640d37d1db916bb15d04e0a259764a Mon Sep 17 00:00:00 2001 From: Raja Subramanian Date: Mon, 24 Aug 2026 10:56:17 +0530 Subject: [PATCH] Join failure is a canceled connection attempt. (#4788) Could happen due to participant being already in room, exceeding max participants, etc. --- pkg/rtc/participant.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/rtc/participant.go b/pkg/rtc/participant.go index 28ffccbc5..3fd569ba3 100644 --- a/pkg/rtc/participant.go +++ b/pkg/rtc/participant.go @@ -1468,7 +1468,8 @@ func (p *ParticipantImpl) recordRTCState(closeReason types.ParticipantCloseReaso } func (p *ParticipantImpl) IsConnectionCanceled(closeReason types.ParticipantCloseReason) bool { - return closeReason == types.ParticipantCloseReasonClientRequestLeave || + return closeReason == types.ParticipantCloseReasonJoinFailed || + closeReason == types.ParticipantCloseReasonClientRequestLeave || closeReason == types.ParticipantCloseReasonDuplicateIdentity || closeReason == types.ParticipantCloseReasonRoomClosed || closeReason == types.ParticipantCloseReasonMigrationRequested ||