Ankit-Aggarwal / SwiftyWebRTC

Swift Framework for WebRTC
MIT License
159 stars 32 forks source link

RTCClient.disconnect() fix #9

Open devsaider opened 6 years ago

devsaider commented 6 years ago

RTCClient couldn't connect after disconnect() and startConnection() call because of broken peerConnection.

(peerConnection.close() method) also releases any resources in use by the ICE agent https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/close