Fix sendLocalDescription retry in web client
This commit is contained in:
parent
ff2ebd76f1
commit
cdb56c8bf5
|
@ -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}`);
|
||||
|
|
Loading…
Reference in New Issue