Skip to content

Commit 24d5444

Browse files
committed
Fix the wait condition
1 parent 6489594 commit 24d5444

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal-api/internal-api-9/src/main/java/datadog/trace/util/queue/MpscBlockingConsumerArrayQueueVarHandle.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public boolean offer(E e) {
4343
public E take() throws InterruptedException {
4444
consumerThread = Thread.currentThread();
4545
E e;
46-
while ((e = poll()) != null) {
46+
while ((e = poll()) == null) {
4747
parkUntilNext(-1);
4848
}
4949
return e;

0 commit comments

Comments
 (0)