AgoraIO / Basic-Video-Broadcasting

Sample app to join/leave a channel, set the role as a host/audience, mute/unmute, switch between front/rear cameras, and set the video parameters.
MIT License
269 stars 287 forks source link

Unhandled Rejection (TypeError): Cannot read property 'close' of undefined #127

Closed yash-khandelwal closed 3 years ago

yash-khandelwal commented 3 years ago

327 | return new Promise((resolve) => { 328 | if (!this._client) return resolve() 329 | // leave channel 330 | this._client.leave( | ^ 331 | () => { 332 | this._joined = false 333 | this.destroy()

yash-khandelwal commented 3 years ago

this happens when you type the wrong channel name.