fix kernel whistlist and notification time sequence problem

Match-id-3655f4280177bca5f389792103c41c5c06428bd2
This commit is contained in:
zhaoguojian 2022-10-24 11:29:31 +08:00
parent fb6060442e
commit ff52ac7c34

View File

@ -55,19 +55,15 @@ void DataCollectManagerService::OnStart()
TaskHandler::GetInstance()->AddTask(loadDbTask);
TaskHandler::Task listenerTask = [] {
UeventNotify notify;
notify.NotifyScan();
std::vector<int64_t> whiteList = ModelAnalysis::GetInstance().GetAllEventIds();
notify.AddWhiteList(whiteList);
UeventListener listener;
listener.Start();
};
TaskHandler::GetInstance()->AddTask(listenerTask);
TaskHandler::Task notifyTask = [] {
UeventNotify notify;
notify.NotifyScan();
std::vector<int64_t> whiteList = ModelAnalysis::GetInstance().GetAllEventIds();
notify.AddWhiteList(whiteList);
};
TaskHandler::GetInstance()->AddTask(notifyTask);
}
void DataCollectManagerService::OnStop()