Fix bug maclient info gets appended, not replaced on pkgmgr event 46/229046/1
authorJi-hoon Lee <dalton.lee@samsng.com>
Fri, 27 Mar 2020 08:44:24 +0000 (17:44 +0900)
committerJi-hoon Lee <dalton.lee@samsng.com>
Fri, 27 Mar 2020 08:49:27 +0000 (17:49 +0900)
commitb9b5dd3273841f152495f45da7a3bedabfde96a4
tree2dfa01d01ac156c938c1b0d7b666e7d6e4e3ac71
parent7a442d9eeee22329a9d67fadf570ec6668cc62b3
Fix bug maclient info gets appended, not replaced on pkgmgr event

When a packge manager event on dependent modules is detected
(such as wakeup engine package), the multi-assistant-service
tries to reload wakeup manager plugin and also reload the
assistant info files.
But the previous implementation appends assistant information
whenever this reload process is requested, not replacing the
original assistant information struct, causing the struct
to contain duplicated entries and also retains entries for
outdated assistant information.
For this reason, make sure the assistant information struct
is cleared before reading assistant info files.

Change-Id: I9ba1c4d7f4fd8c1070f9e1dd5d9d63fc002dd380
src/multi_assistant_service.c