comparison libpurple/dnssrv.c @ 28361:bbb9e0ea67fe

Fix not calling the SRV timeout on the win32 code. Closes #9956.
author Paul Aurich <paul@darkrain42.org>
date Wed, 19 Aug 2009 18:54:54 +0000
parents 7fbf964c6c6c
children 3397fb5f89cf 4e13885b1a6a
comparison
equal deleted inserted replaced
28360:cc70e2bc4de5 28361:bbb9e0ea67fe
463 static gboolean 463 static gboolean
464 res_main_thread_cb(gpointer data) 464 res_main_thread_cb(gpointer data)
465 { 465 {
466 PurpleSrvResponse *srvres = NULL; 466 PurpleSrvResponse *srvres = NULL;
467 PurpleSrvQueryData *query_data = data; 467 PurpleSrvQueryData *query_data = data;
468 if(query_data->error_message != NULL) 468 if(query_data->error_message != NULL) {
469 purple_debug_error("dnssrv", query_data->error_message); 469 purple_debug_error("dnssrv", query_data->error_message);
470 else { 470 if (query_data->type == DNS_TYPE_SRV) {
471 if (query_data->cb.srv)
472 query_data->cb.srv(srvres, 0, query_data->extradata);
473 } else if (query_data->type == DNS_TYPE_TXT) {
474 if (query_data->cb.txt)
475 query_data->cb.txt(NULL, query_data->extradata);
476 }
477 } else {
471 if (query_data->type == DNS_TYPE_SRV) { 478 if (query_data->type == DNS_TYPE_SRV) {
472 PurpleSrvResponse *srvres_tmp = NULL; 479 PurpleSrvResponse *srvres_tmp = NULL;
473 GList *lst = query_data->results; 480 GList *lst = query_data->results;
474 int size = g_list_length(lst); 481 int size = g_list_length(lst);
475 482