2
0
mirror of https://github.com/9ParsonsB/Pulsar.git synced 2025-04-05 17:39:39 -04:00

Fix boolean logic bug that slows ancillary file reading to a crawl ()

Symptoms: App takes a very long time to start up, sluggish response to events because it's reading and processing every ancillary file 10x instead of just once when successful.
This commit is contained in:
F K 2022-07-24 17:17:18 -04:00 committed by GitHub
parent 342d5af11c
commit be6ef85fa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
@ -352,7 +352,7 @@ namespace Observatory
string fileContent = null;
int retryCount = 0;
while (fileContent == null || retryCount < 10)
while (fileContent == null && retryCount < 10)
{
System.Threading.Thread.Sleep(50);
try