fix: IncrementCapturerCount doesn't increase the capturer count (#32973)

This commit is contained in:
zeeker999 2022-03-22 07:38:03 +08:00 committed by GitHub
parent 59246a4c7c
commit 108ee7037f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 84 additions and 2 deletions

View file

@ -3127,8 +3127,9 @@ void WebContents::IncrementCapturerCount(gin::Arguments* args) {
// get stayAwake arguments if they exist
args->GetNext(&stay_awake);
std::ignore =
web_contents()->IncrementCapturerCount(size, stay_hidden, stay_awake);
std::ignore = web_contents()
->IncrementCapturerCount(size, stay_hidden, stay_awake)
.Release();
}
void WebContents::DecrementCapturerCount(gin::Arguments* args) {