Skip to content

Commit

Permalink
delay in roomservice must be there also when an exception happens
Browse files Browse the repository at this point in the history
  • Loading branch information
macel94 committed Jan 10, 2024
1 parent a88dfa4 commit 971fce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BlazorPong.Web/Server/Rooms/RoomService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ protected override async Task ExecuteAsync(CancellationToken cancellationToken)
{
logger.LogInformation("RoomService is running");
await roomGameManager.TryLockRoomAsync();
await Task.Delay(GameConstants.RoomCheckDelayInMs, cancellationToken);
}
catch (Exception ex)
{
logger.LogError(ex, "Error in RoomGamesService");
}
await Task.Delay(GameConstants.RoomCheckDelayInMs, cancellationToken);
}
}
}

0 comments on commit 971fce6

Please sign in to comment.