Skip to content

Conversation

@AHGIJMKLKKZNPJKQR
Copy link
Member

Closes FCE-2680

The error when changing story only occurred when this.deletePeer failed, because of improper cleanup

@AHGIJMKLKKZNPJKQR AHGIJMKLKKZNPJKQR self-assigned this Jan 26, 2026
Copilot AI review requested due to automatic review settings January 26, 2026 12:08
@linear
Copy link

linear bot commented Jan 26, 2026

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug where game cleanup was incomplete when peer deletion failed. The error occurred specifically when changing stories because the cleanup logic was nested inside the try-catch block for deletePeer, preventing proper cleanup when that operation threw an exception.

Changes:

  • Restructured exception handling to use try-catch-finally pattern
  • Moved game cleanup logic into a finally block to ensure it always executes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@AHGIJMKLKKZNPJKQR AHGIJMKLKKZNPJKQR merged commit 37b48b4 into main Jan 26, 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.

3 participants