mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-07 00:00:08 +02:00
runtime: fix misleading signal driver panic message (#8419)
Co-authored-by: philphauler <[email protected]>
This commit is contained in:
co-authored by
philphauler
parent
060cc4e46a
commit
787697f76f
@@ -100,7 +100,7 @@ impl Handle {
|
|||||||
pub(crate) fn signal(&self) -> &crate::runtime::signal::Handle {
|
pub(crate) fn signal(&self) -> &crate::runtime::signal::Handle {
|
||||||
self.signal
|
self.signal
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.expect("there is no signal driver running, must be called from the context of Tokio runtime")
|
.expect("A Tokio 1.x context was found, but IO is disabled. Call `enable_io` on the runtime builder to enable IO.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user