mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +00:00
runtime: fix shutdown_timeout(0) blocking (#3174)
This commit is contained in:
parent
4912943419
commit
0acd06b42a
@ -38,7 +38,7 @@ impl Receiver {
|
|||||||
use crate::runtime::enter::try_enter;
|
use crate::runtime::enter::try_enter;
|
||||||
|
|
||||||
if timeout == Some(Duration::from_nanos(0)) {
|
if timeout == Some(Duration::from_nanos(0)) {
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut e = match try_enter(false) {
|
let mut e = match try_enter(false) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user