Fixes handling of empty messages #144

Merged
merged 1 commit into from Mar 1, 2013

Conversation

Projects
None yet
2 participants
Contributor

zeisss commented Oct 30, 2012

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.

Contributor

zeisss commented Jan 25, 2013

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

postwait added a commit that referenced this pull request Mar 1, 2013

Merge pull request #144 from ZeissS/fix-empty-messages
Fixes handling of empty messages

@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