Permalink
Browse files

Disconnect on release disconnect, not on release

  • Loading branch information...
1 parent 8f5ecdb commit 270b565458c3032b6c8d26ddbfd5a31b6823c29a @bergie bergie committed Oct 14, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 components/CollectObject.coffee
@@ -38,12 +38,13 @@ class CollectObject extends noflo.Component
@inPorts.release.on 'data', =>
do @release
+ @inPorts.release.on 'disconnect', =>
+ @outPorts.out.disconnect()
@inPorts.clear.on 'data', =>
do @clear
release: ->
@outPorts.out.send @data
- @outPorts.out.disconnect()
@data = @clone @data
subscribeSockets: ->

0 comments on commit 270b565

Please sign in to comment.