diff --git a/services/samgr/native/source/collect/common_event_collect.cpp b/services/samgr/native/source/collect/common_event_collect.cpp index 534966438e5a504906276b1a8870580ea989964f..df9693de131159fb852cb5d3e8dec30b2dd218f7 100644 --- a/services/samgr/native/source/collect/common_event_collect.cpp +++ b/services/samgr/native/source/collect/common_event_collect.cpp @@ -553,13 +553,12 @@ void CommonEventCollect::StartReclaimIpcThreadWork(const EventFwk::CommonEventDa isCancel_ = true; } else if (eventName == COMMON_RECENT_EVENT && eventType == COMMON_RECENT_CLEAR_ALL) { isTrigger = true; - isCancel_ = true; + isCancel_ = false; HILOGI("TriggerSystemIPCThreadReclaim"); IPCSkeleton::TriggerSystemIPCThreadReclaim(); } if (isTrigger && !isTriggerTaskStart_.exchange(true)) { - isCancel_ = false; SendKernalReclaimIpcThread(); } }