From 0abfb2515c6f482f4fc23541e57070914d9737fe Mon Sep 17 00:00:00 2001 From: Paul Wells Date: Sun, 14 Dec 2025 04:21:07 -0800 Subject: [PATCH] deregister observability function when participant is closed (#4157) * deregister observability function when participant is closed * tidy --- pkg/rtc/participant.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/rtc/participant.go b/pkg/rtc/participant.go index 6d16a5d4d..af669e91a 100644 --- a/pkg/rtc/participant.go +++ b/pkg/rtc/participant.go @@ -404,7 +404,7 @@ func NewParticipant(params ParticipantParams) (*ParticipantImpl, error) { tx.ReportDuration(uint16(millis)) tx.ReportDurationMinutes(uint8(mins)) - return !p.IsDisconnected() + return !p.IsClosed() }) var err error