Remove spurious error notices on EINTR and EAGAIN in xmpp_run_once().

This commit is contained in:
Jack Moffitt
2008-12-09 13:57:43 -07:00
parent fddd5f1245
commit cb0ae178ee

View File

@@ -222,8 +222,9 @@ void xmpp_run_once(xmpp_ctx_t *ctx, const unsigned long timeout)
/* select errored */
if (ret < 0) {
xmpp_error(ctx, "xmpp", "event watcher internal error %d",
sock_error());
if (!sock_is_recoverable(sock_error()))
xmpp_error(ctx, "xmpp", "event watcher internal error %d",
sock_error());
return;
}