e_client: send E_EVENT_CLIENT_REMOVE event when an ec is deleted 99/262799/2 accepted/tizen/unified/20210820.101803 submit/tizen/20210820.040607
authorDoyoun Kang <doyoun.kang@samsung.com>
Fri, 20 Aug 2021 01:18:47 +0000 (10:18 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Fri, 20 Aug 2021 02:48:42 +0000 (11:48 +0900)
commit1a2d9e4844e8912ec25af79df089111ee17efdea
tree51d7174344ce75c5193c6749a886810472de4b84
parent0ebfb55eccf30a2b43a69f757302ab6e774569fa
e_client: send E_EVENT_CLIENT_REMOVE event when an ec is deleted

There was a bug that the E_Process kept the deleted ec pointer (dangling) in the ec_lists.

When the ec which sent E_EVENT_CLIENT_ADD event and set new_client flag to 1 was deleted,
E could not send E_EVENT_CLIENT_REMOVE event because its new_client flag was 1.
By this, e_process didn't get the E_EVENT_CLIENT_REMOVE and didn't remove ec from ec_lists.

This patch resolve this problem.
We change code to send E_EVENT_CLIENT_REMOVE always if E_EVENT_CLIENT_ADD was sent before.

Change-Id: Iac5f683a9fb2aacd897ec07f4b0ab46c5e396d8d
src/bin/e_client.c