Skip to content

Commit

Permalink
runtime: fix shutdown_timeout(0) blocking (#3174)
Browse files Browse the repository at this point in the history
  • Loading branch information
sharnoff committed Nov 28, 2020
1 parent 4912943 commit 0acd06b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokio/src/runtime/blocking/shutdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl Receiver {
use crate::runtime::enter::try_enter;

if timeout == Some(Duration::from_nanos(0)) {
return true;
return false;
}

let mut e = match try_enter(false) {
Expand Down

0 comments on commit 0acd06b

Please sign in to comment.