comparison src/protocols/bonjour/bonjour.c @ 11927:0d9c6d2ad64b

[gaim-migrate @ 14218] Better error handling for Howl when your mDNS daemon is not running committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 31 Oct 2005 06:06:14 +0000
parents f91b4fedd8b5
children bf4fe41d5e94
comparison
equal deleted inserted replaced
11926:5b703a92e79d 11927:0d9c6d2ad64b
86 bd->jabber_data->port = gaim_account_get_int(account, "port", BONJOUR_DEFAULT_PORT_INT); 86 bd->jabber_data->port = gaim_account_get_int(account, "port", BONJOUR_DEFAULT_PORT_INT);
87 bd->jabber_data->account = account; 87 bd->jabber_data->account = account;
88 88
89 if (bonjour_jabber_start(bd->jabber_data) == -1) { 89 if (bonjour_jabber_start(bd->jabber_data) == -1) {
90 /* Send a message about the connection error */ 90 /* Send a message about the connection error */
91 gaim_debug_error("bonjour", "Unable to listen to iChat connections"); 91 gaim_debug_error("bonjour", "Unable to listen for incoming IM connections");
92 92
93 /* Free the data */ 93 /* Free the data */
94 g_free(bd->jabber_data); 94 g_free(bd->jabber_data);
95 g_free(bd); 95 g_free(bd);
96 return; 96 return;
119 else 119 else
120 bd->dns_sd_data->status = g_strdup("dnd"); 120 bd->dns_sd_data->status = g_strdup("dnd");
121 bd->dns_sd_data->msg = g_strdup(gaim_status_get_attr_string(status, "message")); 121 bd->dns_sd_data->msg = g_strdup(gaim_status_get_attr_string(status, "message"));
122 122
123 bd->dns_sd_data->account = account; 123 bd->dns_sd_data->account = account;
124 bonjour_dns_sd_start(bd->dns_sd_data); 124 if (!bonjour_dns_sd_start(bd->dns_sd_data))
125 {
126 gaim_connection_error(gc, _("Unable to establish connection with the local mDNS server. Is it running?"));
127 return;
128 }
125 129
126 /* Create a group for bonjour buddies */ 130 /* Create a group for bonjour buddies */
127 bonjour_group = gaim_group_new(BONJOUR_GROUP_NAME); 131 bonjour_group = gaim_group_new(BONJOUR_GROUP_NAME);
128 gaim_blist_add_group(bonjour_group, NULL); 132 gaim_blist_add_group(bonjour_group, NULL);
129 133