changeset 24443:892adcbf94c9

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.
author Mark Doliner <mark@kingant.net>
date Sat, 15 Nov 2008 03:17:51 +0000
parents 5cedf11b8e77
children 123c78e48663
files libpurple/protocols/msn/httpconn.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);