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 <cedric@osg.samsung.com>
This commit is contained in:
Shinwoo Kim 2015-11-09 16:00:17 -08:00 committed by Cedric BAIL
parent f1f1ed290c
commit 278ceaa12e
1 changed files with 4 additions and 2 deletions

View File

@ -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);