Fix multiplayer turn checker potentially stopping turn checks for everyone that plays that game if a file was not found remotely #6901
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a commit I already had on my feature branch but that I should PR separately.
Basically, with #6826 (so this problem is not released yet) I removed all usages of
updateCurrentTurn
.updateCurrentTurn
was only used because the turn checker setGameInfoPreview.turnNotification
tofalse
as a marker that this game should not be checked anymore because it was not found on the multiplayer server (dropbox).However, this likely happened because the user messed with the multiplayer server settings and set it to a wrong server. So when they fix those settings,
turnNotification=false
potentially gets uploaded to the server if the game was up to date already and it was their turn, thus resulting in theturnNotification
beingfalse
for everyone playing that game and no one getting turn notifications.The original fix for this behavior was using
updateCurrentTurn
instead of simply replacing theGameInfoPreview
(verified with the original author). I think using a simple field in the turn checker for this is a better solution, less code and no pollution of theGameInfoPreview
with "useless" information. I just forgot to include this in the other PR where I removedupdateCurrentTurn
.