sleep between restarts

This commit is contained in:
discomfitor 2013-12-16 18:03:59 -05:00
parent 7e11fc88aa
commit 494284561f
1 changed files with 4 additions and 1 deletions

View File

@ -213,7 +213,10 @@ fdh_func(void *d EINA_UNUSED, Ecore_Fd_Handler *fdh EINA_UNUSED)
return EINA_TRUE;
}
if (mpd_async_get_error(empd->async) == MPD_ERROR_CLOSED)
ecore_app_restart();
{
sleep(2);
ecore_app_restart();
}
break;
/**
* MPD has returned a name-value pair. Call