forked from enlightenment/enlightenment
parent
9683a3565d
commit
8c5b541a39
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue