Mercurial > pidgin
diff libpurple/protocols/msn/servconn.c @ 20453:69febfa6d307
propagate from branch 'im.pidgin.pidgin' (head d3e5a5add3f39caa08b46c83177328e51c2d961a)
to branch 'im.pidgin.cpw.khc.msnp14' (head a8f6c999b039b4097aa70cd8d2597f3127615435)
author | Carlos Silva <typ0@pidgin.im> |
---|---|
date | Sat, 16 Jun 2007 04:00:32 +0000 |
parents | f905fa3bd56e 5c0f2eab43d9 |
children | ef2e720f1b8f |
line wrap: on
line diff
--- a/libpurple/protocols/msn/servconn.c Sun Jun 03 01:06:44 2007 +0000 +++ b/libpurple/protocols/msn/servconn.c Sat Jun 16 04:00:32 2007 +0000 @@ -195,6 +195,7 @@ } else { + purple_debug_error("msn", "Connection error: %s\n", error_message); msn_servconn_got_error(servconn, MSN_SERVCONN_ERROR_CONNECT); } } @@ -353,7 +354,7 @@ if (ret < 0 && errno == EAGAIN) ret = 0; - if (ret < len) { + if (ret >= 0 && ret < len) { if (servconn->tx_handler == -1) servconn->tx_handler = purple_input_add( servconn->fd, PURPLE_INPUT_WRITE,