sipsorcery-org / sipsorcery

A WebRTC, SIP and VoIP library for C# and .NET. Designed for real-time communications apps.
https://sipsorcery-org.github.io/sipsorcery
Other
1.39k stars 424 forks source link

Handle exception in WebRTCWebSocketPeer.OnOpen() to log the error. #1121

Open programatix opened 2 months ago

programatix commented 2 months ago

Since OnOpen is an async, exception raised will be unhandled. It need to be handled to resolve the issue reported in https://github.com/sipsorcery-org/sipsorcery/issues/1120.