mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-02 16:29:55 +02:00
webrtc peer do not set nil conn.
This commit is contained in:
parent
5a2fcc1c8a
commit
43f8fe339f
2 changed files with 3 additions and 6 deletions
|
@ -487,7 +487,7 @@ func (manager *WebRTCManagerCtx) CreatePeer(session types.Session, bitrate int,
|
|||
session.SetWebRTCConnected(peer, true)
|
||||
case webrtc.PeerConnectionStateDisconnected,
|
||||
webrtc.PeerConnectionStateFailed:
|
||||
connection.Close()
|
||||
peer.Destroy()
|
||||
case webrtc.PeerConnectionStateClosed:
|
||||
// ensure we only run this once
|
||||
once.Do(func() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue