Remove periodic saving again (#5880)

This commit is contained in:
Leonard Günther
2021-12-31 10:08:19 +01:00
committed by GitHub
parent ee65adb5e4
commit 2404749bba

View File

@ -253,8 +253,10 @@ class MultiplayerTurnCheckWorker(appContext: Context, workerParams: WorkerParame
I assume this happened because the TurnCheckerWorker gets canceled by the AndroidLauncher
while saves are getting saved right here.
Lets hope it works with gamePreview as they are a lot smaller and faster to save
Well they don't work either ¯\_(ツ)_/¯
I will have to find a different way (see #5756 for more info)
*/
GameSaver.saveGame(gamePreview, gameNames[arrayIndex])
//GameSaver.saveGame(gamePreview, gameNames[arrayIndex])
if (currentTurnPlayer.playerId == inputData.getString(USER_ID)!! && foundGame.isEmpty()) {
// We only save the first found game as the player will go into the