diff --git a/interfaces/kits/js/src/mod_fs/class_watcher/fs_watcher.cpp b/interfaces/kits/js/src/mod_fs/class_watcher/fs_watcher.cpp index 73dd1d8303a3f99aa1c7895778b85db513630b17..bbaf0b7b4cabdee66e1135d8f40b8cf6d0047648 100644 --- a/interfaces/kits/js/src/mod_fs/class_watcher/fs_watcher.cpp +++ b/interfaces/kits/js/src/mod_fs/class_watcher/fs_watcher.cpp @@ -48,6 +48,7 @@ FsResult FsWatcher::Stop() HILOGE("Failed to get watchEntity when stop."); return FsResult::Error(EINVAL); } + int ret = FsFileWatcher::GetInstance().StopNotify(watchEntity->watherInfo); if (ret != ERRNO_NOERR) { HILOGE("Failed to stopNotify errno:%{public}d", errno);