Skip to content

Commit

Permalink
more cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusfriedman committed Nov 22, 2023
1 parent 8a97baf commit 394f3cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rtp/RtpClient.Methods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 394f3cf

Please sign in to comment.