Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/shutdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ impl Shutdown {

/// Receive the shutdown notice, waiting if necessary.
pub(crate) async fn recv(&mut self) {
// If the shutdown signal has already been received, then return
// immediately.
if self.shutdown {
return;
}

// Cannot receive a "lag error" as only one value is ever sent.
let _ = self.notify.recv().await;

Expand Down