- Timestamp:
- 2010-09-04T17:23:46Z (14 years ago)
- Branches:
- master
- Children:
- 975708a
- Parents:
- 27053b5
- Location:
- protocols/msn
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/msn/msn.c
r27053b5 r4e1be76 92 92 93 93 msn_msgq_purge( ic, &md->msgq ); 94 msn_soapq_flush( ic, FALSE ); 94 95 95 96 for( i = 0; i < sizeof( md->tokens ) / sizeof( md->tokens[0] ); i ++ ) -
protocols/msn/soap.c
r27053b5 r4e1be76 69 69 70 70 static int msn_soap_send_request( struct msn_soap_req_data *req ); 71 static void msn_soap_free( struct msn_soap_req_data *soap_req ); 71 72 static void msn_soap_debug_print( const char *headers, const char *payload ); 72 73 … … 127 128 if( g_slist_find( msn_connections, soap_req->ic ) == NULL ) 128 129 { 129 soap_req->free_data( soap_req ); 130 g_free( soap_req->url ); 131 g_free( soap_req->action ); 132 g_free( soap_req->payload ); 133 g_free( soap_req ); 130 msn_soap_free( soap_req ); 134 131 return; 135 132 } … … 232 229 } 233 230 234 static int msn_soapq_empty( struct im_connection *ic)231 int msn_soapq_flush( struct im_connection *ic, gboolean resend ) 235 232 { 236 233 struct msn_data *md = ic->proto_data; … … 238 235 while( md->soapq ) 239 236 { 240 msn_soap_send_request( (struct msn_soap_req_data*) md->soapq->data ); 237 if( resend ) 238 msn_soap_send_request( (struct msn_soap_req_data*) md->soapq->data ); 239 else 240 msn_soap_free( (struct msn_soap_req_data*) md->soapq->data ); 241 241 md->soapq = g_slist_remove( md->soapq, md->soapq->data ); 242 242 } 243 243 244 244 return MSN_SOAP_OK; 245 } 246 247 static void msn_soap_free( struct msn_soap_req_data *soap_req ) 248 { 249 soap_req->free_data( soap_req ); 250 g_free( soap_req->url ); 251 g_free( soap_req->action ); 252 g_free( soap_req->payload ); 253 g_free( soap_req ); 245 254 } 246 255 … … 370 379 371 380 if( md->soapq ) 372 return msn_soapq_ empty( ic);381 return msn_soapq_flush( ic, TRUE ); 373 382 374 383 if( sd->secret == NULL ) -
protocols/msn/soap.h
r27053b5 r4e1be76 43 43 #endif 44 44 #include "nogaim.h" 45 46 47 int msn_soapq_flush( struct im_connection *ic, gboolean resend ); 45 48 46 49
Note: See TracChangeset
for help on using the changeset viewer.