openvidu-browser: update broken RTCPeerConnection check

pull/630/head
pabloFuente 2021-05-19 10:46:00 +02:00
parent 75945bb8fe
commit 52fee08e45
1 changed files with 1 additions and 1 deletions

View File

@ -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 */