diff --git a/IceCreamShop/IceCreamShopBusinessLogic/BusinessLogic/WorkModeling.cs b/IceCreamShop/IceCreamShopBusinessLogic/BusinessLogic/WorkModeling.cs index 725c67c..3387330 100644 --- a/IceCreamShop/IceCreamShopBusinessLogic/BusinessLogic/WorkModeling.cs +++ b/IceCreamShop/IceCreamShopBusinessLogic/BusinessLogic/WorkModeling.cs @@ -79,6 +79,8 @@ namespace IceCreamShopBusinessLogic.BusinessLogic { Id = order.Id }); + // отдыхаем + Thread.Sleep(implementer.Qualification * _rnd.Next(10, 100)); } // кто-то мог уже перехватить заказ, игнорируем ошибку catch (InvalidOperationException ex) @@ -91,8 +93,6 @@ namespace IceCreamShopBusinessLogic.BusinessLogic _logger.LogError(ex, "Error while do work"); throw; } - // отдыхаем - Thread.Sleep(implementer.Qualification * _rnd.Next(10, 100)); } }); }