From dcfed644f6201e17a6ba1e9c7d07f4e85a7377de Mon Sep 17 00:00:00 2001 From: Henri Bergius Date: Mon, 23 Oct 2017 17:56:37 +0200 Subject: [PATCH] Call done --- components/Callback.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/Callback.coffee b/components/Callback.coffee index 8137928..2cc13cd 100644 --- a/components/Callback.coffee +++ b/components/Callback.coffee @@ -22,12 +22,12 @@ exports.getComponent = -> return unless input.hasData 'callback', 'in' [callback, data] = input.getData 'callback', 'in' unless typeof callback is 'function' - output.sendDone new Error 'The provided callback must be a function' + output.done new Error 'The provided callback must be a function' return # Call the callback when receiving data try callback data catch e - return output.sendDone e + return output.done e output.done()