mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-24 01:11:07 +01:00
fix arbiter thread panic message
This commit is contained in:
parent
0b0060fe47
commit
115e82329f
@ -1,5 +1,12 @@
|
||||
# Changes
|
||||
|
||||
## [0.2.6] - Unreleased
|
||||
|
||||
### Fixed
|
||||
|
||||
* Fix arbiter's thread panic message.
|
||||
|
||||
|
||||
## [0.2.5] - 2019-09-02
|
||||
|
||||
### Added
|
||||
|
@ -260,9 +260,11 @@ struct ArbiterController {
|
||||
impl Drop for ArbiterController {
|
||||
fn drop(&mut self) {
|
||||
if thread::panicking() {
|
||||
eprintln!("Panic in Arbiter thread, shutting down system.");
|
||||
if System::current().stop_on_panic() {
|
||||
eprintln!("Panic in Arbiter thread, shutting down system.");
|
||||
System::current().stop_with_code(1)
|
||||
} else {
|
||||
eprintln!("Panic in Arbiter thread.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user