Remove STUN candidates, disconnect clients on ICE failed

This commit is contained in:
David Zhao
2021-06-28 12:47:16 -07:00
parent 815fd5066d
commit 343aec98a0
4 changed files with 6 additions and 14 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ func TestICEStateChange(t *testing.T) {
p.onClose = func(participant types.Participant) {
close(closeChan)
}
p.handlePublisherICEStateChange(webrtc.ICEConnectionStateDisconnected)
p.handlePublisherICEStateChange(webrtc.ICEConnectionStateFailed)
select {
case <-closeChan: