diff --git a/crossbeam-epoch/src/internal.rs b/crossbeam-epoch/src/internal.rs index 228550c96..fd1d9c6d5 100644 --- a/crossbeam-epoch/src/internal.rs +++ b/crossbeam-epoch/src/internal.rs @@ -227,10 +227,7 @@ impl Global { &|sealed_bag: &SealedBag| sealed_bag.is_expired(global_epoch), guard, ) { - None => { - collecting.set(false); - break; - } + None => break, Some(sealed_bag) => { GLOBAL_GARBAGE_COUNT.fetch_sub(sealed_bag._bag.len, Ordering::AcqRel); drop(sealed_bag);