update services/continuous_task/src/bg_continuous_task_mgr.cpp.

Signed-off-by: anchi <anchi1@huawei.com>
This commit is contained in:
anchi 2024-03-28 01:19:58 +00:00 committed by Gitee
parent 6a7b9c4c40
commit 644964d021
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -576,7 +576,6 @@ ErrCode BgContinuousTaskMgr::StartBackgroundRunningForInner(const sptr<Continuou
ErrCode BgContinuousTaskMgr::StartBackgroundRunning(const sptr<ContinuousTaskParam> &taskParam)
{
HitraceScoped traceScoped(HITRACE_TAG_OHOS, "BgContinuousTaskMgr::StartBackgroundRunning");
if (!isSysReady_.load()) {
BGTASK_LOGW("manager is not ready");
return ERR_BGTASK_SYS_NOT_READY;
@ -807,7 +806,6 @@ ErrCode BgContinuousTaskMgr::StopBackgroundRunningForInner(const sptr<Continuous
ErrCode BgContinuousTaskMgr::StopBackgroundRunning(const std::string &abilityName, int32_t abilityId)
{
HitraceScoped traceScoped(HITRACE_TAG_OHOS, "BgContinuousTaskMgr::StopBackgroundRunning");
if (!isSysReady_.load()) {
BGTASK_LOGW("manager is not ready");
return ERR_BGTASK_SYS_NOT_READY;