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

This commit is contained in:
Max Sharnoff
2020-11-28 19:31:13 +01:00
committed by GitHub
parent 4912943419
commit 0acd06b42a
+1 -1
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) {