qulogic/pidgin

Ignore cancelled errors, since we're the ones cancelling things.
draft win-mdns
2021-02-04, Elliott Sales de Andrade
24d89976d6c8
Parents ba47703827d8
Children 0656204810fc
Ignore cancelled errors, since we're the ones cancelling things.
--- a/libpurple/protocols/bonjour/mdns_dnsapi.c Thu Feb 04 23:22:28 2021 -0500
+++ b/libpurple/protocols/bonjour/mdns_dnsapi.c Thu Feb 04 23:25:44 2021 -0500
@@ -83,6 +83,8 @@
if (status != ERROR_SUCCESS) {
purple_debug_error("bonjour", "service advertisement - error (%ld)",
status);
+ } else if (status == ERROR_CANCELLED) {
+ /* Intentionally cancelled, so we do nothing. */
} else {
purple_debug_info("bonjour", "service advertisement - success.");
}
@@ -279,6 +281,11 @@
G_SOURCE_FUNC(_mdns_service_browse_parse),
data,
(GDestroyNotify)_mdns_record_data_free);
+ } else if (status == ERROR_CANCELLED) {
+ /* Intentionally cancelled, so we just clear things. */
+ if (pDnsRecord) {
+ DnsRecordListFree(pDnsRecord, DnsFreeRecordList);
+ }
} else {
g_timeout_add_seconds(0, G_SOURCE_FUNC(_mdns_service_browse_error),
GUINT_TO_POINTER(status));