diff --git a/src/BlazorPong.Web/Server/Rooms/RoomService.cs b/src/BlazorPong.Web/Server/Rooms/RoomService.cs index 187bf49..b74d6ce 100644 --- a/src/BlazorPong.Web/Server/Rooms/RoomService.cs +++ b/src/BlazorPong.Web/Server/Rooms/RoomService.cs @@ -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); } } }