mirror of
https://gitee.com/openharmony/resourceschedule_background_task_mgr
synced 2024-11-23 23:10:22 +00:00
update services/continuous_task/src/bg_continuous_task_mgr.cpp.
Signed-off-by: anchi <anchi1@huawei.com>
This commit is contained in:
parent
6a7b9c4c40
commit
644964d021
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user