empty messages could not be consumed or get, this has now been fixed

This commit is contained in:
Emiel Bruijntjes 2014-08-01 10:37:18 +02:00
parent 7956d706fb
commit b97222c4db
1 changed files with 4 additions and 1 deletions

View File

@ -119,11 +119,14 @@ public:
if (!message) return false;
// store size
message->setBodySize(bodySize());
message->setBodySize(_bodySize);
// and copy the meta data
message->set(_metadata);
// for empty bodies we're ready now
if (_bodySize == 0) channel->reportMessage();
// done
return true;
}