Skip to content

Commit 1f6a951

Browse files
committed
Fixed out-of-range exception
1 parent 997a4f1 commit 1f6a951

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DotNext.Threading/Threading/QueuedSynchronizer.Queue.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ public void Add(LinkedValueTaskCompletionSource<bool> node)
289289
result = new object?[length];
290290
for (var index = 0L; current is not null && index < length; index++)
291291
{
292-
result[index++] = current.CallerInfo;
292+
result[index] = current.CallerInfo;
293293
current = current.Next as WaitNode;
294294
}
295295
}

0 commit comments

Comments
 (0)