Fixes handling of empty messages #144

merged 1 commit into from Mar 1, 2013

2 participants


It looks like the Queue._onContent callback is not executed, if a message has an empty body (size 0).

This fix emits the 'end' event directly, if the provided size of a new message is zero.


@postwait: I added a test case, but I am not sure if this follows the correct style.

@postwait postwait merged commit 702acb5 into postwait:master Mar 1, 2013
@zeisss zeisss deleted the zeisss:fix-empty-messages branch Mar 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment