From 7eb9305448d280aa76d4b8f45967e07c2348e6cc Mon Sep 17 00:00:00 2001 From: Roman Musin Date: Thu, 11 Mar 2021 14:29:35 +0000 Subject: [PATCH] Desktop: Set keep-alive on http(s) requests (#4625) --- packages/lib/shim-init-node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/lib/shim-init-node.js b/packages/lib/shim-init-node.js index 2e93d8d0b..eb73759dd 100644 --- a/packages/lib/shim-init-node.js +++ b/packages/lib/shim-init-node.js @@ -481,7 +481,7 @@ function shimInit(sharp = null, keytar = null, React = null) { shim.httpAgent_ = null; shim.httpAgent = url => { - if (shim.isLinux() && !shim.httpAgent) { + if (shim.isLinux() && !shim.httpAgent_) { const AgentSettings = { keepAlive: true, maxSockets: 1,