mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
call onDisconnected in webrtc close.
This commit is contained in:
parent
78a9a31624
commit
720c2f7a3d
@ -281,7 +281,7 @@ export class NekoWebRTC extends EventEmitter<NekoWebRTCEvents> {
|
||||
this._log.warn(`unable to generate video snap`, { error })
|
||||
}
|
||||
|
||||
this._peer.close()
|
||||
this.onDisconnected(new Error('connection closed'))
|
||||
}
|
||||
|
||||
public addTrack(track: MediaStreamTrack, ...streams: MediaStream[]): RTCRtpSender {
|
||||
|
Loading…
Reference in New Issue
Block a user