diff --git a/libafl/src/events/simple.rs b/libafl/src/events/simple.rs index 71145e59be..e6fe52b309 100644 --- a/libafl/src/events/simple.rs +++ b/libafl/src/events/simple.rs @@ -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)]