Fixed method for WebAPI + signal-r interference

This commit is contained in:
Samuele Locatelli
2020-06-16 18:02:42 +02:00
parent 87703058ac
commit 928c0d20f9
4 changed files with 18 additions and 6 deletions
+2 -2
View File
@@ -917,7 +917,7 @@ public static class ThreadsFunctions
recipeRtCounter--;
bool onlyRt = recipeRtCounter > 0;
//check reset...
recipeRtCounter = recipeRtCounter < 0 ? 5 : recipeRtCounter;
recipeRtCounter = recipeRtCounter < 0 ? 4 : recipeRtCounter;
sw.Restart();
@@ -1021,7 +1021,7 @@ public static class ThreadsFunctions
// Update thread timer
UpdateStat(MethodBase.GetCurrentMethod().Name, sw.ElapsedMilliseconds);
// Wait
Thread.Sleep(CalcSleepTime(1000, (int)sw.ElapsedMilliseconds));
Thread.Sleep(CalcSleepTime(500, (int)sw.ElapsedMilliseconds));
}
}
catch (ThreadAbortException)