1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2024-12-24 13:43:09 +00:00

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

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}`);