Skip to content

Commit

Permalink
Update tokio/src/sync/watch.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Alice Ryhl <[email protected]>
  • Loading branch information
uklotzde and Darksonn authored Sep 20, 2023
1 parent 64f1e23 commit c0b73f0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tokio/src/sync/watch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,7 @@ mod state {

/// Set the closed bit in the state.
pub(super) fn set_closed(&self) {
// Relaxed ordering is sufficient here.
self.0.fetch_or(CLOSED_BIT, Ordering::Relaxed);
self.0.fetch_or(CLOSED_BIT, Ordering::Release);
}
}
}
Expand Down

0 comments on commit c0b73f0

Please sign in to comment.