Skip to content

Create polished demo videos without editing skills. Mac/Windows/Linux

Prevent closed console streams from crashing Recordly

webadderall4b92215cc35d
diff --git a/electron/main.ts b/electron/main.ts
index 3514c1eb..1ea7dce6 100644
--- a/electron/main.ts
+++ b/electron/main.ts
@@ -64,7 +64,7 @@ const IS_SMOKE_EXPORT = process.env.RECORDLY_SMOKE_EXPORT === "1";
function ignoreBrokenConsolePipe(stream: NodeJS.WritableStream | undefined) {
stream?.on("error", (error: NodeJS.ErrnoException) => {
- if (error.code === "EPIPE") {
+ if (error.code === "EPIPE" || error.code === "EIO") {
return;
}
throw error;