summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Sharnoff <github@max.sharnoff.org>2020-11-28 18:31:13 +0000
committerGitHub <noreply@github.com>2020-11-28 19:31:13 +0100
commit0acd06b42a9d1461302388f2a533e86d391d6040 (patch)
treec17e5d58e10ee419e492cb831843c3f08e1f66d8
parent49129434198a96444bc0e9582a14062d3a46e93a (diff)
runtime: fix shutdown_timeout(0) blocking (#3174)
-rw-r--r--tokio/src/runtime/blocking/shutdown.rs2
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) {