diff --git a/pkg/rtc/participant.go b/pkg/rtc/participant.go index d6b4125a..8a8f0a76 100644 --- a/pkg/rtc/participant.go +++ b/pkg/rtc/participant.go @@ -418,8 +418,10 @@ func NewParticipant(params ParticipantParams) (*ParticipantImpl, error) { var timerStarted bool params.Reporter.RegisterFunc(func(ts time.Time, tx roomobs.ParticipantSessionTx) bool { if dts := p.disconnectedAt.Load(); dts != nil { - ts = *dts - tx.ReportEndTime(ts) + if p.CloseReason() != types.ParticipantCloseReasonMigrationComplete { // participant has migrated to another node + ts = *dts + tx.ReportEndTime(ts) + } } // Don't publish duration if participant never became active. Otherwise short-lived