diff --git a/src/main/lens-proxy.ts b/src/main/lens-proxy.ts index a3bee528cd..76ef478e1d 100644 --- a/src/main/lens-proxy.ts +++ b/src/main/lens-proxy.ts @@ -142,6 +142,10 @@ export class LensProxy extends Singleton { res.flushHeaders(); } } + + proxyRes.on("aborted", () => { // happens when proxy target aborts connection + res.end(); + }); }); proxy.on("error", (error, req, res, target) => {