e_policy_wl: broadcast to all tzsh service and client when new service is added 31/231731/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Fri, 24 Apr 2020 03:48:01 +0000 (12:48 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Fri, 24 Apr 2020 03:48:05 +0000 (12:48 +0900)
There was a bug that the new service was added, then tzsh_service didn't notice it.
We fixes this issue.

Change-Id: Id6da4ec946a3c1daee3c08845b3c786b448fa16a

src/bin/e_policy_wl.c

index b95b1b87705f197f720d38aca84ac8ec7f4c92b0..771159947454e63c6412962c3ea4f4b2fb8ff552 100644 (file)
@@ -884,7 +884,8 @@ _e_policy_wl_tzsh_srv_state_broadcast(E_Policy_Wl_Tzsh_Srv *tzsh_srv, Eina_Bool
 
    EINA_LIST_FOREACH(polwl->tzshs, l, tzsh)
      {
-        if (tzsh->type == TZSH_TYPE_SRV) continue;
+        if (tzsh_srv->tzsh == tzsh)
+          continue;
 
         if (reg)
           tizen_ws_shell_send_service_register