diff --git a/src/lib.rs b/src/lib.rs index 3b79610..bcb9d8a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -595,7 +595,7 @@ impl Shared { Err(TryRecvTimeoutError::Disconnected).into() } else if should_block { let hook = make_signal(); - chan.waiting.push_back(hook.clone()); + chan.waiting.push_front(hook.clone()); drop(chan); do_block(hook)