• Iñaki Baz Castillo's avatar
    Fix Worker crash when closing WebRtcServer with active WebRtcTransports (#1390) · d33cb887
    由 Iñaki Baz Castillo 提交于
    * Fix Worker crash when closing WebRtcServer with active WebRtcTransports
    
    Fixes #1388
    
    ### Details
    
    - `WebRtcServer` destructor must first close its `WebRtcTransports` and then the UDP sockets and TCP servers (so also its TCP connections). Otherwise those `WebRtcTransports` will try to send DTLS Close Alert on an already closed/freed `UdpSocketHandle` or `TcpConnectionHandle`.
    
    ### Steps to verify
    
    1. Have `WebRtcServer` running and a client connected.
    2. In server side call `webRtcServer.close()`.
    3. It should not crash anymore.
    
    * Update CHANGELOG
    d33cb887