empty messages could not be consumed or get, this has now been fixed
This commit is contained in:
parent
7956d706fb
commit
b97222c4db
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue