unload i18n service when load i18n service but no request

Signed-off-by: sunyaozu <sunyaozu@huawei.com>
This commit is contained in:
sunyaozu 2023-12-28 11:55:32 +08:00
parent d057539947
commit d428624ad5

View File

@ -103,6 +103,7 @@ void I18nServiceAbility::OnStart()
HiLog::Info(LABEL, "I18nServiceAbility Publish failed.");
}
handler = std::make_shared<AppExecFwk::EventHandler>(AppExecFwk::EventRunner::Create(true));
UnloadI18nServiceAbility();
}
void I18nServiceAbility::OnStop()