more mixer magic failure fixes

SVN revision: 77429
This commit is contained in:
Mike Blumenkrantz 2012-10-04 11:51:31 +00:00
parent 9683a3565d
commit 8c5b541a39
1 changed files with 24 additions and 4 deletions

View File

@ -30,7 +30,12 @@ msg_recv_creds(Pulse *conn, Pulse_Tag *tag)
if ((!r) || (r == sizeof(tag->header))) tag->auth = EINA_TRUE;
else if (r < 0)
{
if (errno != EAGAIN) ecore_main_fd_handler_del(conn->fdh);
if (errno != EAGAIN)
{
ERR("%d: %s", errno, strerror(errno));
ecore_main_fd_handler_del(conn->fdh);
conn->fdh = NULL;
}
}
else
{
@ -76,7 +81,12 @@ msg_recv(Pulse *conn, Pulse_Tag *tag)
}
else if (r < 0)
{
if (errno != EAGAIN) ecore_main_fd_handler_del(conn->fdh);
if (errno != EAGAIN)
{
ERR("%d: %s", errno, strerror(errno));
ecore_main_fd_handler_del(conn->fdh);
conn->fdh = NULL;
}
}
else
tag->pos += r;
@ -152,7 +162,12 @@ msg_send_creds(Pulse *conn, Pulse_Tag *tag)
if ((!r) || (r == (int)sizeof(tag->header))) tag->auth = EINA_TRUE;
else if (r < 0)
{
if (errno != EAGAIN) ecore_main_fd_handler_del(conn->fdh);
if (errno != EAGAIN)
{
ERR("%d: %s", errno, strerror(errno));
ecore_main_fd_handler_del(conn->fdh);
conn->fdh = NULL;
}
}
else
tag->pos += r;
@ -180,7 +195,12 @@ msg_send(Pulse *conn, Pulse_Tag *tag)
}
if (r < 0)
{
if (errno != EAGAIN) ecore_main_fd_handler_del(conn->fdh);
if (errno != EAGAIN)
{
ERR("%d: %s", errno, strerror(errno));
ecore_main_fd_handler_del(conn->fdh);
conn->fdh = NULL;
}
}
else
tag->pos += r;