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

Commit dd2a631

Browse files
committed
Fix nullref when no consumer is waiting
1 parent 33394b6 commit dd2a631

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/EventHook/Helpers/AsyncConcurrentQueue.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ internal void Enqueue(T value)
3838

3939
//signal
4040
dequeueTaskLock.Wait();
41-
dequeueTask.TrySetResult(true);
41+
dequeueTask?.TrySetResult(true);
4242
dequeueTaskLock.Release();
4343

4444
}

0 commit comments

Comments
 (0)