mirror of
https://github.com/atom/atom.git
synced 2026-02-02 10:45:14 -05:00
Make sure Atom terminates after message is sent.
This commit is contained in:
@@ -14,8 +14,9 @@ module.exports =
|
||||
class AtomApplication
|
||||
@open: (options) ->
|
||||
client = net.connect {path: socketPath}, ->
|
||||
client.write(JSON.stringify(options))
|
||||
app.terminate()
|
||||
client.write JSON.stringify(options), ->
|
||||
client.end()
|
||||
app.terminate()
|
||||
|
||||
client.on 'error', -> new AtomApplication(options)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user