# HG changeset patch # User Mark Doliner # Date 1226719071 0 # Node ID 892adcbf94c999ae8c3f12f498e96153e81db745 # Parent 5cedf11b8e775f1706a924f7a0b3346a03b948ba 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. diff -r 5cedf11b8e77 -r 892adcbf94c9 libpurple/protocols/msn/httpconn.c --- 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);