From 75410109317f54b936f1d93c77b4c54660234ed0 Mon Sep 17 00:00:00 2001 From: "saerome.kim" Date: Tue, 3 Sep 2019 13:41:36 +0900 Subject: [PATCH] Fixed the problem that device can't be added to each plugin when ua-manager restart. Change-Id: I6ee109be28f9044575f48b83884864da2a33fd07 Signed-off-by: saerome.kim --- packaging/ua-manager.spec | 2 +- ua-daemon/src/ua-manager-core.c | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/packaging/ua-manager.spec b/packaging/ua-manager.spec index 212564e..02209bd 100644 --- a/packaging/ua-manager.spec +++ b/packaging/ua-manager.spec @@ -1,6 +1,6 @@ Name: ua-manager Summary: User awareness manager -Version: 0.7.0 +Version: 0.7.1 Release: 1 License: Apache-2.0 Source0: %{name}-%{version}.tar.gz diff --git a/ua-daemon/src/ua-manager-core.c b/ua-daemon/src/ua-manager-core.c index 876055d..526e7b0 100644 --- a/ua-daemon/src/ua-manager-core.c +++ b/ua-daemon/src/ua-manager-core.c @@ -2068,12 +2068,11 @@ int _uam_core_init(void) db_adv_list = _uam_db_get_all_advs(); if (!db_adv_list) { UAM_INFO_C("No iBeacon adv in database"); - return UAM_ERROR_NONE; - } - - for (l = db_adv_list; NULL != l; l = g_slist_next(l)) { - db_adv_info_t *db_adv = l->data; - _uam_pm_add_ibeacon_adv(db_adv->adv_len, db_adv->iadv); + } else { + for (l = db_adv_list; NULL != l; l = g_slist_next(l)) { + db_adv_info_t *db_adv = l->data; + _uam_pm_add_ibeacon_adv(db_adv->adv_len, db_adv->iadv); + } } g_slist_free_full(db_devices, g_free); -- 2.7.4