openvidu-browser: update broken RTCPeerConnection check
This commit is contained in:
parent
75945bb8fe
commit
52fee08e45
@ -778,7 +778,7 @@ export class Stream {
|
||||
return true;
|
||||
}
|
||||
const iceConnectionState: RTCIceConnectionState = this.getRTCPeerConnection().iceConnectionState;
|
||||
return iceConnectionState === 'disconnected' || iceConnectionState === 'failed';
|
||||
return iceConnectionState !== 'connected' && iceConnectionState !== 'completed';
|
||||
}
|
||||
|
||||
/* Private methods */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user