ecore-wl2: only print socket ERR messages when not attempting to reconnect

reduces spamming in logs
This commit is contained in:
Mike Blumenkrantz 2016-05-06 15:43:01 -04:00
parent 8a5abfbfc3
commit 037a3916bc
1 changed files with 4 additions and 2 deletions

View File

@ -300,11 +300,13 @@ _recovery_timer_add(Ecore_Wl2_Display *ewd)
static void
_begin_recovery_maybe(Ecore_Wl2_Display *ewd)
{
ERR("Wayland Socket Error: %s", strerror(errno));
if (ewd->wl.session_recovery)// && (errno == EPIPE))
_recovery_timer_add(ewd);
else
_ecore_wl2_display_signal_exit();
{
ERR("Wayland Socket Error: %s", strerror(errno));
_ecore_wl2_display_signal_exit();
}
}
static Eina_Bool