Skip to content

lamdera live: Switch order of new-leader broadcast and disconnect broadcast#107

Merged
supermario merged 1 commit into
lamdera:lamdera-nextfrom
Janiczek:patch-1
Jul 10, 2026
Merged

lamdera live: Switch order of new-leader broadcast and disconnect broadcast#107
supermario merged 1 commit into
lamdera:lamdera-nextfrom
Janiczek:patch-1

Conversation

@Janiczek

@Janiczek Janiczek commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

This fixes a bug where:

  1. a leader joins
  2. a follower joins
  3. a leader closes the browser tab
  4. a disconnect is broadcast (but there is no leader to act on it)
  5. a new leader is broadcast

We switch the steps 4 and 5, so that the new leader can act on the disconnect message.

…adcast

This fixes a bug where:

1. a leader joins
2. a follower joins
3. a leader closes the browser tab
4. a disconnect is broadcast (but there is no leader to act on it)
5. a new leader is broadcast

We switch the steps 4 and 5, so that the new leader can act on the disconnect message.
@supermario supermario merged commit c150d8f into lamdera:lamdera-next Jul 10, 2026
1 check passed
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