From 841bda9d9b30c5ff75b9cdb7a1a6a32883b9c520 Mon Sep 17 00:00:00 2001 From: Aldin Duraki Date: Thu, 21 May 2020 15:48:32 +0200 Subject: [PATCH] Readded sleep --- GoldWars/GoldWars/RoundCalculatorService.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/GoldWars/GoldWars/RoundCalculatorService.swift b/GoldWars/GoldWars/RoundCalculatorService.swift index a07fa2f..b9186c6 100644 --- a/GoldWars/GoldWars/RoundCalculatorService.swift +++ b/GoldWars/GoldWars/RoundCalculatorService.swift @@ -111,6 +111,7 @@ class RoundCalculatorService { MultiplayerNetwork.sharedInstance.sendSnapshotModelToPlayers() DataService.sharedInstance.snapshotModel = currentSnapshotModel EntityManager.sharedInstance.updateSnapshotModel(snapshotModel: currentSnapshotModel!) + sleep(1) EntityManager.sharedInstance.getTimer().startWithDuration(duration: 31) os_log("Finished calculating Round", log: RoundCalculatorService.LOG, type: .info) }