Skip to content

Commit

Permalink
fix incorrect use of pop_front instead of next_recv
Browse files Browse the repository at this point in the history
  • Loading branch information
fereidani committed Jul 14, 2022
1 parent cd7f7a1 commit ee4bd7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ impl<T> AsyncSender<T> {
if internal.send_count == 0 {
return Err(Error::Closed);
}
if let Some(first) = internal.recv_wait.pop_front() {
if let Some(first) = internal.next_recv() {
drop(internal);
unsafe { first.send(data) }
Ok(())
Expand Down

0 comments on commit ee4bd7b

Please sign in to comment.