Skip to content

Fixing race condition when starting screen share. - #48

Merged
filipi87 merged 2 commits into
mainfrom
filipi/fix_android_screen_share
May 19, 2026
Merged

Fixing race condition when starting screen share.#48
filipi87 merged 2 commits into
mainfrom
filipi/fix_android_screen_share

Conversation

@filipi87

Copy link
Copy Markdown

Fixing race condition when starting screen share.

@filipi87
filipi87 marked this pull request as ready for review May 18, 2026 13:51
@filipi87
filipi87 requested review from kompfner and mattieruth May 18, 2026 14:02

@mattieruth mattieruth left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good. just the one question.

Log.i(TAG, "Media projection service started");
}

return startFuture;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to complete the future in the abort?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, abort is only called from ScreenCaptureController.dispose(), at this point the future will always be completed.

@filipi87
filipi87 merged commit a983a05 into main May 19, 2026
1 check passed
@filipi87
filipi87 deleted the filipi/fix_android_screen_share branch May 19, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants