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

Revert PluginCore use of event listening for current LogMonitor state (#64)

The order that listeners get notified isn't deterministic and as a result plugins which read the current state from PluginCore during the handling of a state change event may read a stale state resulting in unexpected results. PluginCore now reads a property directly from LogMonitor to avoid such inconsistencies.
This commit is contained in:
F K
2022-03-15 09:44:20 -04:00
committed by GitHub
parent 4f4ba88878
commit fa5c978b34
3 changed files with 9 additions and 9 deletions

View File

@ -49,7 +49,6 @@ namespace Observatory.PluginManagement
logMonitor.LogMonitorStateChanged += pluginHandler.OnLogMonitorStateChanged;
var core = new PluginCore();
logMonitor.LogMonitorStateChanged += core.OnLogMonitorStateChanged;
List<IObservatoryPlugin> errorPlugins = new();