From 814a3c5c93e1b8b8fdc097bf71274c0c36d9e346 Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Wed, 14 Jun 2023 09:39:24 -0700 Subject: [PATCH] wip --- tokio/src/runtime/tests/loom_pool.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio/src/runtime/tests/loom_pool.rs b/tokio/src/runtime/tests/loom_pool.rs index fb42e1eb4..96ec92bd1 100644 --- a/tokio/src/runtime/tests/loom_pool.rs +++ b/tokio/src/runtime/tests/loom_pool.rs @@ -412,8 +412,8 @@ async fn multi_gated() { } poll_fn(move |cx| { + gate.waker.register_by_ref(cx.waker()); if gate.count.load(SeqCst) < 2 { - gate.waker.register_by_ref(cx.waker()); Poll::Pending } else { Poll::Ready(())