Skip to content

Commit 55d8e87

Browse files
authored
Merge pull request #14 from amantoux/use_correct_pc_status
Fix `connectionState` being incorrect
2 parents 809ba43 + fda8127 commit 55d8e87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/rtc_peerconnection_impl.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ class RTCPeerConnectionWeb extends RTCPeerConnection {
9494
onSignalingState?.call(_signalingState!);
9595
});
9696

97-
_jsPc.onIceConnectionStateChange.listen((_) {
98-
_connectionState = peerConnectionStateForString(_jsPc.iceConnectionState);
97+
_jsPc.onConnectionStateChange.listen((_) {
98+
_connectionState = peerConnectionStateForString(_jsPc.connectionState);
9999
onConnectionState?.call(_connectionState!);
100100
});
101101

0 commit comments

Comments
 (0)