diff src/protocols/msn/soap.c @ 19810:da1075366756

[gaim-migrate @ 16885] middle stage of debugging multiple-SOAP request read 0 from soap Reply comitted by MaYuan<mayuan2006@gmail.com> committer: Ethan Blanton <elb@pidgin.im>
author Ma Yuan <mayuan2006@gmail.com>
date Sat, 19 Aug 2006 16:13:55 +0000
parents b488205ad0bc
children 4c7aa3b07f42
line wrap: on
line diff
--- a/src/protocols/msn/soap.c	Sat Aug 19 14:12:41 2006 +0000
+++ b/src/protocols/msn/soap.c	Sat Aug 19 16:13:55 2006 +0000
@@ -352,17 +352,11 @@
 			}
 			/*clear the read buffer*/
 			msn_soap_free_read_buf(soapconn);
-
+#if 1
+//			msn_soap_close(soapconn);
+#endif
 			/*Process the next queued SOAP request*/
 			msn_soap_post_head_request(soapconn);
-
-#if 0
-	/*remove the read handler*/
-	gaim_input_remove(soapconn->input_handler);
-	soapconn->input_handler = -1;
-	//	gaim_ssl_close(soapconn->gsc);
-	//	soapconn->gsc = NULL;
-#endif
 	}
 	return;
 }
@@ -437,6 +431,8 @@
 	if(soapconn->written_cb != NULL){
 		soapconn->written_cb(soapconn, source, 0);
 	}
+	/*maybe we need to read the input?*/
+	msn_soap_read_cb(soapconn,source,0);
 }
 
 /*write the buffer to SOAP connection*/
@@ -495,6 +491,8 @@
 void
 msn_soap_post_head_request(MsnSoapConn *soapconn)
 {
+	g_return_if_fail(soapconn->soap_queue != NULL);
+
 	if(!g_queue_is_empty(soapconn->soap_queue)){
 		MsnSoapReq *request;
 		if((request = g_queue_pop_head(soapconn->soap_queue)) != NULL){