Fix unsubscribed speakers stuck as speaking to clients (#1475)

When we unsubscribe from a speaker, SendSpeakerUpdates will drop updates
from that speaker. This has the side effect of dropping the "clearing"
message that we are sending as well.
This commit is contained in:
David Zhao
2023-02-26 23:56:09 -08:00
committed by GitHub
parent ade26f7c9e
commit 8c43b7b48f
5 changed files with 24 additions and 18 deletions
+1 -1
View File
@@ -411,7 +411,7 @@ func TestActiveSpeakers(t *testing.T) {
var updates [][]*livekit.SpeakerInfo
numCalls := p.SendSpeakerUpdateCallCount()
for i := 0; i < numCalls; i++ {
infos := p.SendSpeakerUpdateArgsForCall(i)
infos, _ := p.SendSpeakerUpdateArgsForCall(i)
updates = append(updates, infos)
}
return updates