Skip to content

Commit

Permalink
fix(no_std): remove use of thread::panicking
Browse files Browse the repository at this point in the history
Signed-off-by: Eliza Weisman <[email protected]>
  • Loading branch information
hawkw committed Apr 11, 2022
1 parent dab0d49 commit 8ae178a
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 @@ -167,7 +167,7 @@ impl Core {

fn close(&self) -> bool {
test_println!("Core::close");
if std::thread::panicking() {
if crate::util::panic::panicking() {
return false;
}
test_dbg!(self.tail.fetch_or(self.closed, SeqCst) & self.closed == 0)
Expand Down

0 comments on commit 8ae178a

Please sign in to comment.