changeset 26349:1a701a4ceae3

fixes a race condition, probably Fixes #8594 and maybe others
author Ka-Hing Cheung <khc@hxbc.us>
date Wed, 01 Apr 2009 03:36:06 +0000
parents 9aa672807759
children dbaf5dd52d67
files libpurple/protocols/msn/soap.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)) {