Skip to content

Commit 648fa4c

Browse files
authored
ignore auto-updater QUIC protocol error (#1450)
1 parent 9bae030 commit 648fa4c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

emain/emain.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,14 @@ process.on("uncaughtException", (error) => {
546546
if (caughtException) {
547547
return;
548548
}
549+
550+
// Check if the error is related to QUIC protocol, if so, ignore (can happen with the updater)
551+
if (error?.message?.includes("net::ERR_QUIC_PROTOCOL_ERROR")) {
552+
console.log("Ignoring QUIC protocol error:", error.message);
553+
console.log("Stack Trace:", error.stack);
554+
return;
555+
}
556+
549557
caughtException = true;
550558
console.log("Uncaught Exception, shutting down: ", error);
551559
console.log("Stack Trace:", error.stack);

0 commit comments

Comments
 (0)