Add return to avoid double-consent

See issue #330
pull/331/head
Martin 2019-10-04 19:03:48 +02:00 committed by GitHub
parent 9cd389eb61
commit 0f7e2e2b89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

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