RestComm / webrtcomm

WebRTCComm is a simple high level JavaScript WebRTC framework for Web Developers to add Real Time Communications and IM Capabilities to any website.
http://www.restcomm.com/
GNU General Public License v3.0
18 stars 21 forks source link

We shouldn't get a warning when the call is hung up for iceconnectionstatechange #72

Closed atsakiridis closed 7 years ago

atsakiridis commented 7 years ago

What happens when we hang up is that PC is deallocated, but the callback for IceConnectionStateChange occurs after that, probably saying that it has transitioned to closed:

WebRTCommCall:onRtcPeerConnectionIceConnectionStateChangeEvent(): event ignored 
    [WebRTCommCall.onRtcPeerConnectionIceConnectionStateChangeEvent

Instead we should ignore that.