fixes a race condition, probably Fixes #8594 and maybe others

Wed, 01 Apr 2009 03:36:06 +0000

author
Ka-Hing Cheung <khc@pidgin.im>
date
Wed, 01 Apr 2009 03:36:06 +0000
changeset 26604
76027bc6da98
parent 26552
adab47063b5a
child 26605
ed43f2a21190

fixes a race condition, probably Fixes #8594 and maybe others

libpurple/protocols/msn/soap.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/msn/soap.c	Thu Mar 26 05:34:15 2009 +0000
+++ b/libpurple/protocols/msn/soap.c	Wed Apr 01 03:36:06 2009 +0000
@@ -667,6 +667,7 @@
 			conn->handled_len = 0;
 			conn->current_request = req;
 
+			purple_input_remove(conn->event_handle);
 			conn->event_handle = purple_input_add(conn->ssl->fd,
 				PURPLE_INPUT_WRITE, msn_soap_write_cb, conn);
 			if (!msn_soap_write_cb_internal(conn, conn->ssl->fd, PURPLE_INPUT_WRITE, TRUE)) {

mercurial