Merge b806783e09 into 4583f88626
This commit is contained in:
commit
b18e453a96
@ -4,9 +4,15 @@ import { formatBonjourError } from "./bonjour-errors.js";
|
|||||||
|
|
||||||
export function ignoreCiaoCancellationRejection(reason: unknown): boolean {
|
export function ignoreCiaoCancellationRejection(reason: unknown): boolean {
|
||||||
const message = formatBonjourError(reason).toUpperCase();
|
const message = formatBonjourError(reason).toUpperCase();
|
||||||
if (!message.includes("CIAO ANNOUNCEMENT CANCELLED")) {
|
// Ignore ciao cancellation rejections (normal cleanup)
|
||||||
return false;
|
if (message.includes("CIAO ANNOUNCEMENT CANCELLED")) {
|
||||||
|
logDebug(`bonjour: ignoring unhandled ciao rejection: ${formatBonjourError(reason)}`);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
logDebug(`bonjour: ignoring unhandled ciao rejection: ${formatBonjourError(reason)}`);
|
// Ignore socket errors from mDNS announcements (non-fatal, can happen due to network issues)
|
||||||
return true;
|
if (message.includes("ANNOUNCEMENT FAILED") && message.includes("SOCKET ERRORS")) {
|
||||||
|
logDebug(`bonjour: ignoring mDNS socket error: ${formatBonjourError(reason)}`);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user