Temporarily workaround for slow net.connect, fixes #1429.

This commit is contained in:
Cheng Zhao
2014-01-17 20:28:02 +08:00
parent 677ec44b37
commit dfa3d8a1c7

View File

@@ -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()