Skip to content

Conversation

@adrian-niculescu
Copy link
Contributor

@davidliu, this PR cherry-picks the independent fixes from #797 that remain valuable after #813 was merged.

Changes:

  • Add @Volatile to hasPublished for proper memory visibility across threads
  • Move hasPublished = true before the connection check so reconnect() can re-trigger negotiation even if the first attempt occurs before Signal connects

These changes improve thread-safety and fix a reconnection edge case where the publisher intent could be lost if negotiation was triggered before the signal client connected.

@changeset-bot
Copy link

changeset-bot bot commented Nov 24, 2025

🦋 Changeset detected

Latest commit: 2184b0a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
client-sdk-android Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@davidliu davidliu merged commit 2828664 into livekit:main Nov 24, 2025
2 checks passed
@davidliu davidliu mentioned this pull request Nov 24, 2025
@adrian-niculescu adrian-niculescu deleted the fix/publisher-hasPublished-thread-safety branch November 24, 2025 13:32
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