mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
do not destroy WebRTC on WS disconnect.
This commit is contained in:
parent
fb845a1f18
commit
89081d9887
@ -77,12 +77,6 @@ func (session *SessionCtx) SetWebSocketConnected(connected bool) {
|
|||||||
|
|
||||||
session.manager.emmiter.Emit("disconnected", session)
|
session.manager.emmiter.Emit("disconnected", session)
|
||||||
session.websocketPeer = nil
|
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 {
|
func (session *SessionCtx) Send(v interface{}) error {
|
||||||
|
Loading…
Reference in New Issue
Block a user