mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
fix log.
This commit is contained in:
parent
7d39fd862c
commit
bd5f02223a
@ -86,13 +86,13 @@ export class NekoWebRTC extends EventEmitter<NekoWebRTCEvents> {
|
|||||||
|
|
||||||
this._peer.onicecandidate = (event: RTCPeerConnectionIceEvent) => {
|
this._peer.onicecandidate = (event: RTCPeerConnectionIceEvent) => {
|
||||||
if (!event.candidate) {
|
if (!event.candidate) {
|
||||||
this._log.debug(`sent all remote ICE candidates`)
|
this._log.debug(`sent all local ICE candidates`)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const init = event.candidate.toJSON()
|
const init = event.candidate.toJSON()
|
||||||
this.emit('candidate', init)
|
this.emit('candidate', init)
|
||||||
this._log.debug(`sending remote ICE candidate`, { init })
|
this._log.debug(`sending local ICE candidate`, { init })
|
||||||
}
|
}
|
||||||
|
|
||||||
this._peer.onicecandidateerror = (event: Event) => {
|
this._peer.onicecandidateerror = (event: Event) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user