Skip to content
This repository has been archived by the owner on Apr 21, 2021. It is now read-only.

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
justcoding121 committed Apr 13, 2018
1 parent c5d83e7 commit 180ccf5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions EventHook/Helpers/AsyncQueue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,8 @@ internal void Enqueue(T value)
queue.Enqueue(value);

//wake up the dequeue task with result
if (dequeueTask != null
&& !dequeueTask.Task.IsCompleted)
{
dequeueTask.SetResult(true);
}
dequeueTask?.TrySetResult(true);

}

/// <summary>
Expand Down

0 comments on commit 180ccf5

Please sign in to comment.