mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +00:00

This patch fixes Semaphore by adding a missing code path to the release routine that handles the case where the waiter's node is queued in the sempahore but has not yet been assigned the permit. This fix is used by mpsc to handle the case when the Sender has called `poll_ready` and is dropped before the permit is acquired. Fixes #900