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

This regression was introduced by commit 22a70eb8.

Co-authored-by: Zeeker <13848632+zeeker999@users.noreply.github.com>
This commit is contained in:
trop[bot]
2022-03-22 11:25:27 -04:00
committed by GitHub
parent f893707c5d
commit 700887d623
3 changed files with 84 additions and 2 deletions

View File

@@ -3103,8 +3103,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) {