mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
ignore auto-updater QUIC protocol error (#1450)
This commit is contained in:
parent
9bae030371
commit
648fa4c49a
@ -546,6 +546,14 @@ process.on("uncaughtException", (error) => {
|
||||
if (caughtException) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Check if the error is related to QUIC protocol, if so, ignore (can happen with the updater)
|
||||
if (error?.message?.includes("net::ERR_QUIC_PROTOCOL_ERROR")) {
|
||||
console.log("Ignoring QUIC protocol error:", error.message);
|
||||
console.log("Stack Trace:", error.stack);
|
||||
return;
|
||||
}
|
||||
|
||||
caughtException = true;
|
||||
console.log("Uncaught Exception, shutting down: ", error);
|
||||
console.log("Stack Trace:", error.stack);
|
||||
|
Loading…
Reference in New Issue
Block a user