Skip to content

Commit

Permalink
Async components are ordered by default. Fixed a bug in disconnect …
Browse files Browse the repository at this point in the history
…forwarding.
  • Loading branch information
trustmaster committed Jul 17, 2014
1 parent 2be8061 commit c59ee97
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/Helpers.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ exports.WirePattern = (component, config, proc) ->
# For async process
config.async = false unless 'async' of config
# Keep correct output order for async mode
config.ordered = false unless 'ordered' of config
config.ordered = true unless 'ordered' of config
# Group requests by group ID
config.group = false unless 'group' of config
# Group requests by object field
Expand Down Expand Up @@ -250,6 +250,7 @@ exports.WirePattern = (component, config, proc) ->
if config.async or config.StreamSender
if config.ordered
component.outputQ.push null
processQueue()
else
component.disconnectQ.push true
else
Expand All @@ -265,6 +266,7 @@ exports.WirePattern = (component, config, proc) ->
if config.async or config.StreamSender
if config.ordered
component.outputQ.push null
processQueue()
else
component.disconnectQ.push true
else
Expand Down

0 comments on commit c59ee97

Please sign in to comment.