未验证 提交 e8394f70 编写于 作者: O openharmony_ci 提交者: Gitee

!1585 修复watch失败

Merge pull request !1585 from yichengzhao/mon
...@@ -307,11 +307,12 @@ void WatcherManager::OnStart() ...@@ -307,11 +307,12 @@ void WatcherManager::OnStart()
bool res = Publish(this); bool res = Publish(this);
if (!res) { if (!res) {
WATCHER_LOGE("WatcherManager Publish failed"); WATCHER_LOGE("WatcherManager Publish failed");
return;
} }
SystemSetParameter("bootevent.param_watcher.started", "true");
if (deathRecipient_ == nullptr) { if (deathRecipient_ == nullptr) {
deathRecipient_ = new DeathRecipient(this); deathRecipient_ = new DeathRecipient(this);
} }
SystemSetParameter("bootevent.param_watcher.started", "true");
return; return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册