mirror of
https://github.com/atom/atom.git
synced 2026-01-14 09:27:57 -05:00
Throw error when sending to terminated process
Mirrors behavior of start method
This commit is contained in:
@@ -91,6 +91,7 @@ class Task
|
||||
# * message:
|
||||
# The message to send
|
||||
send: (message) ->
|
||||
throw new Error("Cannot send message to terminated process") unless @childProcess?
|
||||
@childProcess.send(message)
|
||||
|
||||
# Public: Forcefully stop the running task.
|
||||
|
||||
Reference in New Issue
Block a user