aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/jabber/jabber.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-03-01 23:48:37 +0100
committerJelmer Vernooij <jelmer@samba.org>2006-03-01 23:48:37 +0100
commita4dc9f77de03eb46ecabed02dbd1b678319cf11d (patch)
tree71a8dfa927ea2ac4bfc30a36b4d9324a51247aeb /protocols/jabber/jabber.c
parent8e419cb4f86679636b2d96618e1bec4853636c11 (diff)
parent9a1555dc8521f0973347911bcb26d1038259f967 (diff)
[merge] Wilmer
Diffstat (limited to 'protocols/jabber/jabber.c')
-rw-r--r--protocols/jabber/jabber.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/jabber/jabber.c b/protocols/jabber/jabber.c
index d4b5bde5..ba652b8a 100644
--- a/protocols/jabber/jabber.c
+++ b/protocols/jabber/jabber.c
@@ -412,7 +412,7 @@ static void gjab_recv(gjconn gjc)
XML_Parse(gjc->parser, buf, len, 0);
if (jd->die)
signoff(GJ_GC(gjc));
- } else if (len < 0 || errno != EAGAIN) {
+ } else if (len == 0 || (len < 0 && (!sockerr_again() || gjc->ssl))) {
STATE_EVT(JCONN_STATE_OFF)
}
}