diff options
author | Max Sharnoff <github@max.sharnoff.org> | 2020-11-28 18:31:13 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-28 19:31:13 +0100 |
commit | 0acd06b42a9d1461302388f2a533e86d391d6040 (patch) | |
tree | c17e5d58e10ee419e492cb831843c3f08e1f66d8 | |
parent | 49129434198a96444bc0e9582a14062d3a46e93a (diff) |
runtime: fix shutdown_timeout(0) blocking (#3174)
-rw-r--r-- | tokio/src/runtime/blocking/shutdown.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tokio/src/runtime/blocking/shutdown.rs b/tokio/src/runtime/blocking/shutdown.rs index 3b6cc593..0cf22859 100644 --- a/tokio/src/runtime/blocking/shutdown.rs +++ b/tokio/src/runtime/blocking/shutdown.rs @@ -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) { |