cedric pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=0e03ef5a26b414f3ad8a8fbaf92db21b6103ea8b

commit 0e03ef5a26b414f3ad8a8fbaf92db21b6103ea8b
Author: Shinwoo Kim <cinoo....@samsung.com>
Date:   Mon Nov 9 16:00:17 2015 -0800

    conform: retry connect to indicator when confrom fails connect.
    
    Summary:
    An application starts before the indicator has. In this case,
    the application should try to connect again with the indicator.
    
    Test Plan:
    1. Start an application without the indicator service.
    2. Start the indicator service.
    
    Reviewers: raster, Hermet, woohyun, jaehwan, cedric
    
    Subscribers: seoz
    
    Differential Revision: https://phab.enlightenment.org/D3258
    
    Signed-off-by: Cedric BAIL <ced...@osg.samsung.com>
---
 src/lib/elm_conform.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/lib/elm_conform.c b/src/lib/elm_conform.c
index 491a1bf..8b56787 100644
--- a/src/lib/elm_conform.c
+++ b/src/lib/elm_conform.c
@@ -407,7 +407,8 @@ _create_portrait_indicator(Evas_Object *obj)
    if (!elm_plug_connect(port_indicator, port_indicator_serv_name, 0, 
EINA_FALSE))
      {
         DBG("Conformant cannot connect to server[%s]\n", 
port_indicator_serv_name);
-        return NULL;
+        sd->port_indi_timer = ecore_timer_add(ELM_CONFORM_INDICATOR_TIME,
+                                          _port_indicator_connect_cb, obj);
      }
 
    elm_widget_sub_object_add(obj, port_indicator);
@@ -448,7 +449,8 @@ _create_landscape_indicator(Evas_Object *obj)
    if (!elm_plug_connect(land_indicator, land_indicator_serv_name, 0, 
EINA_FALSE))
      {
         DBG("Conformant cannot connect to server[%s]\n", 
land_indicator_serv_name);
-        return NULL;
+        sd->land_indi_timer = ecore_timer_add(ELM_CONFORM_INDICATOR_TIME,
+                                          _land_indicator_connect_cb, obj);
      }
 
    elm_widget_sub_object_add(obj, land_indicator);

-- 


Reply via email to