--- 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)",
+ } else if (status == ERROR_CANCELLED) { + /* Intentionally cancelled, so we do nothing. */ purple_debug_info("bonjour", "service advertisement - success.");
@@ -279,6 +281,11 @@
G_SOURCE_FUNC(_mdns_service_browse_parse),
(GDestroyNotify)_mdns_record_data_free);
+ } else if (status == ERROR_CANCELLED) { + /* Intentionally cancelled, so we just clear things. */ + DnsRecordListFree(pDnsRecord, DnsFreeRecordList); g_timeout_add_seconds(0, G_SOURCE_FUNC(_mdns_service_browse_error),
GUINT_TO_POINTER(status));