forked from enlightenment/enlightenment
try introducing a delay after starting eeze scanner to make socket connection more successful
SVN revision: 65382
This commit is contained in:
parent
557f7d4755
commit
330a63e43d
|
@ -528,6 +528,14 @@ eet_setup(void)
|
|||
#undef DAT
|
||||
}
|
||||
|
||||
static Eina_Bool
|
||||
_scanner_delay(void *data __UNUSED__)
|
||||
{
|
||||
INF("Attempting scanner connection");
|
||||
svr = ecore_con_server_connect(ECORE_CON_LOCAL_SYSTEM, "eeze_scanner", 0, NULL);
|
||||
return EINA_FALSE;
|
||||
}
|
||||
|
||||
static Eina_Bool
|
||||
_scanner_poll(void *data __UNUSED__)
|
||||
{
|
||||
|
@ -542,7 +550,7 @@ _scanner_poll(void *data __UNUSED__)
|
|||
snprintf(buf, sizeof(buf), "%s/.ecore_service|eeze_scanner|0", tmp);
|
||||
if (!stat(buf, &st))
|
||||
{
|
||||
svr = ecore_con_server_connect(ECORE_CON_LOCAL_SYSTEM, "eeze_scanner", 0, NULL);
|
||||
ecore_timer_add(1.0, _scanner_delay, NULL);
|
||||
return EINA_FALSE;
|
||||
}
|
||||
return EINA_TRUE;
|
||||
|
|
Loading…
Reference in New Issue