empty messages could not be consumed or get, this has now been fixed
This commit is contained in:
parent
bcbe50e22c
commit
dca76db2f0
|
|
@ -119,11 +119,14 @@ public:
|
||||||
if (!message) return false;
|
if (!message) return false;
|
||||||
|
|
||||||
// store size
|
// store size
|
||||||
message->setBodySize(bodySize());
|
message->setBodySize(_bodySize);
|
||||||
|
|
||||||
// and copy the meta data
|
// and copy the meta data
|
||||||
message->set(_metadata);
|
message->set(_metadata);
|
||||||
|
|
||||||
|
// for empty bodies we're ready now
|
||||||
|
if (_bodySize == 0) channel->reportMessage();
|
||||||
|
|
||||||
// done
|
// done
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue