do not destroy WebRTC on WS disconnect.

This commit is contained in:
Miroslav Šedivý 2021-03-23 15:38:09 +01:00
parent fb845a1f18
commit 89081d9887

View File

@ -77,12 +77,6 @@ func (session *SessionCtx) SetWebSocketConnected(connected bool) {
session.manager.emmiter.Emit("disconnected", session)
session.websocketPeer = nil
if session.webrtcPeer != nil {
if err := session.webrtcPeer.Destroy(); err != nil {
session.logger.Warn().Err(err).Msgf("webrtc destroy has failed")
}
}
}
func (session *SessionCtx) Send(v interface{}) error {