mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-24 00:00:11 +02:00
runtime: fix shutdown_timeout(0) blocking (#3174)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user