Make this function match read_cb() in servconn.c. The bottom halves of

Sat, 15 Nov 2008 03:17:51 +0000

author
Mark Doliner <markdoliner@pidgin.im>
date
Sat, 15 Nov 2008 03:17:51 +0000
changeset 24664
93cabd9c980b
parent 24663
13f53cd06a48
child 24665
dc7eea813a9e

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);

mercurial