Make it possible to escape from simple event restarter (#1303)
This commit is contained in:
parent
747a636f4f
commit
60c1990f4a
@ -506,6 +506,10 @@ where
|
||||
|
||||
compiler_fence(Ordering::SeqCst);
|
||||
|
||||
if staterestorer.wants_to_exit() {
|
||||
return Err(Error::shutting_down());
|
||||
}
|
||||
|
||||
#[allow(clippy::manual_assert)]
|
||||
if !staterestorer.has_content() {
|
||||
#[cfg(unix)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user