Merge pull request #331 from mserve/patch-1

Add return to avoid double-consent
pull/370/head
Pablo Fuente Pérez 2019-10-22 11:22:50 +02:00 committed by GitHub
commit 34cda28405
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -566,6 +566,7 @@ export class OpenVidu {
reject(new OpenViduError(errorName, errorMessage)); reject(new OpenViduError(errorName, errorMessage));
}); });
} }
return;
} }
} }
const constraintsAux = mustAskForAudioTrackLater ? { video: constraints.video } : constraints; const constraintsAux = mustAskForAudioTrackLater ? { video: constraints.video } : constraints;