diff --git a/services/native/src/work_scheduler_service.cpp b/services/native/src/work_scheduler_service.cpp index f8d7908468f33b1085fcf998907fa4f7d8d3fa54..00b2c4764199d6f996d6bdc00254fb80102ea0b3 100644 --- a/services/native/src/work_scheduler_service.cpp +++ b/services/native/src/work_scheduler_service.cpp @@ -200,7 +200,6 @@ void WorkSchedulerService::OnStop() if (ret != ERR_OK) { WS_HILOGE("unscribe bgtask failed."); } - subscriber_.reset(); #endif eventRunner_.reset(); handler_.reset();