From 3e202d6ac72eb1ec95f3da279c6043dc29416b0a Mon Sep 17 00:00:00 2001 From: Xjph Date: Wed, 16 Mar 2022 17:59:43 -0230 Subject: [PATCH] Use HasFlag --- ObservatoryCore/LogMonitor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ObservatoryCore/LogMonitor.cs b/ObservatoryCore/LogMonitor.cs index 9748513..1f18a1e 100644 --- a/ObservatoryCore/LogMonitor.cs +++ b/ObservatoryCore/LogMonitor.cs @@ -78,7 +78,7 @@ namespace Observatory public bool IsMonitoring() { - return (currentState & LogMonitorState.Realtime) == LogMonitorState.Realtime; + return currentState.HasFlag(LogMonitorState.Realtime); } // TODO(fredjk_gh): Remove?