Skip to content

Fix retro reuse existing analysis#2859

Open
sviluppatoredisoftware wants to merge 2 commits intolichess-org:mainfrom
sviluppatoredisoftware:fix-retro-reuse-existing-analysis
Open

Fix retro reuse existing analysis#2859
sviluppatoredisoftware wants to merge 2 commits intolichess-org:mainfrom
sviluppatoredisoftware:fix-retro-reuse-existing-analysis

Conversation

@sviluppatoredisoftware
Copy link
Copy Markdown

Related to #2564 and #2750

What this changes

This PR tries to fix the case where Learn from your mistakes can get stuck / keep loading after a computer analysis was already requested first.

The issue seems to come from the retro flow attaching too late to analysis progress and potentially trying to request / restart analysis again for the same game.

Changes

  • avoid restarting server analysis if the same game is already being analyzed
  • attach the retro listener earlier
  • reuse an already available analysis progress event for the same game
  • keep tracking the current game even when the server responds with 400 already requested

Why

This should help with the cases described in:

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.

1 participant