Sat, 15 Nov 2008 03:17:51 +0000
Make this function match read_cb() in servconn.c. The bottom halves of
these two function should probably share the same code, since they're
exactly the same.
| libpurple/protocols/msn/httpconn.c | file | annotate | diff | comparison | revisions |
--- a/libpurple/protocols/msn/httpconn.c Sat Nov 15 02:49:49 2008 +0000 +++ b/libpurple/protocols/msn/httpconn.c Sat Nov 15 03:17:51 2008 +0000 @@ -379,9 +379,9 @@ msn_cmdproc_process_cmd_text(servconn->cmdproc, cur); servconn->payload_len = servconn->cmdproc->last_cmd->payload_len; } - } while (servconn->connected && servconn->rx_len > 0); + } while (servconn->connected && !servconn->wasted && servconn->rx_len > 0); - if (servconn->connected) + if (servconn->connected && !servconn->wasted) { if (servconn->rx_len > 0) servconn->rx_buf = g_memdup(cur, servconn->rx_len);