Throw error when starting terminated process

This commit is contained in:
Kevin Sawicki
2013-06-13 17:38:23 -07:00
committed by probablycorey
parent 8280b3a3ff
commit bff57e53f0

View File

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