From 394f3cf49d2f8d921bb59d2498529bd559bb2281 Mon Sep 17 00:00:00 2001 From: Julius Friedman Date: Tue, 21 Nov 2023 21:56:57 -0500 Subject: [PATCH] more cleanup. --- Rtp/RtpClient.Methods.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rtp/RtpClient.Methods.cs b/Rtp/RtpClient.Methods.cs index b7a20209..52ae7d14 100644 --- a/Rtp/RtpClient.Methods.cs +++ b/Rtp/RtpClient.Methods.cs @@ -2164,12 +2164,12 @@ void HandleEvents() if (m_EventReady.IsSet is false) { //Wait for the event signal half of the amount of time - if (false.Equals(m_EventReady.Wait(Common.Extensions.TimeSpan.TimeSpanExtensions.OneTick))) + if (m_EventReady.Wait(Common.Extensions.TimeSpan.TimeSpanExtensions.OneTick) is false) { //Todo, ThreadInfo. //Check if not already below normal priority - if (false.Equals(System.Threading.Thread.CurrentThread.Priority == System.Threading.ThreadPriority.Lowest)) + if (System.Threading.Thread.CurrentThread.Priority is not System.Threading.ThreadPriority.Lowest) { //Relinquish priority System.Threading.Thread.CurrentThread.Priority = System.Threading.ThreadPriority.Lowest;