From dfa3d8a1c770e12a8ae59a5e8e371eeeeba544f3 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 17 Jan 2014 20:28:02 +0800 Subject: [PATCH] Temporarily workaround for slow net.connect, fixes #1429. --- src/browser/atom-application.coffee | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/browser/atom-application.coffee b/src/browser/atom-application.coffee index fa18a59c1..5331bac58 100644 --- a/src/browser/atom-application.coffee +++ b/src/browser/atom-application.coffee @@ -39,6 +39,10 @@ class AtomApplication createAtomApplication() return + # The net.connect is slow in atom-shell for now, use this workaround until + # atom/atom-shell#159 is fixed. + process.activateUvLoop() + client = net.connect {path: socketPath}, -> client.write JSON.stringify(options), -> client.end()