runtime: fix shutdown_timeout(0) blocking (#3174)

This commit is contained in:
Max Sharnoff 2020-11-28 18:31:13 +00:00 committed by GitHub
parent 4912943419
commit 0acd06b42a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {