Fix stale reconnect counts in CallEnded: cacheStartCall now resets the full cache

This commit is contained in:
fkwp
2026-05-11 18:50:34 +02:00
parent 4ffe3a6d2a
commit 45f39033ae

View File

@@ -50,7 +50,17 @@ export class CallEndedTracker {
};
public cacheStartCall(time: Date): void {
this.cache.startTime = time;
this.cache = {
startTime: time,
maxParticipantsCount: 0,
reconnectingCount: 0,
reconnectingCountByReason: {
syncing: 0,
membershipConnected: 0,
certainlyConnected: 0,
livekit: 0,
},
};
}
public cacheParticipantCountChanged(count: number): void {