This commit is contained in:
Miroslav Šedivý 2022-01-30 01:28:38 +01:00
parent 7d39fd862c
commit bd5f02223a

View File

@ -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) => {