Fix sendLocalDescription retry in web client

This commit is contained in:
Alexandre Iooss 2020-10-23 08:11:55 +02:00
parent ff2ebd76f1
commit cdb56c8bf5
No known key found for this signature in database
GPG Key ID: 6C79278F3FCDCC02
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ export class GsWebSocket {
sendLocalDescription(localDescription, stream, quality) {
if (this.socket.readyState !== 1) {
console.log("[WebSocket] Waiting for connection to send data...");
setTimeout(() => this.sendDescription(localDescription, stream, quality), 100);
setTimeout(() => this.sendLocalDescription(localDescription, stream, quality), 100);
return;
}
console.log(`[WebSocket] Sending WebRTC local session description for stream ${stream} quality ${quality}`);