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 (#93)
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:
parent
342d5af11c
commit
be6ef85fa4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user