mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Throw error when starting terminated process
This commit is contained in:
committed by
probablycorey
parent
8280b3a3ff
commit
bff57e53f0
@@ -30,6 +30,8 @@ class Task
|
||||
@trigger(event, args...)
|
||||
|
||||
start: (args...) ->
|
||||
throw new Error("Cannot start terminated process") unless @childProcess?
|
||||
|
||||
@handleEvents()
|
||||
@callback = args.pop()
|
||||
@childProcess.send({args})
|
||||
|
||||
Reference in New Issue
Block a user