finally fix annoying pulse mixer magic failure

SVN revision: 77424
This commit is contained in:
Mike Blumenkrantz 2012-10-04 10:33:59 +00:00
parent 183c036dcf
commit a848b7291e
1 changed files with 6 additions and 1 deletions

View File

@ -125,7 +125,12 @@ msg_sendmsg_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;