1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

stop join tripping up if last message of buffer is blank.

This commit is contained in:
Dave Conway-Jones 2019-06-01 23:49:27 +01:00
parent 53ab6f8569
commit 2cc19e7e32
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4

View File

@ -627,8 +627,10 @@ module.exports = function(RED) {
var group = inflight[partId]; var group = inflight[partId];
if (payloadType === 'buffer') { if (payloadType === 'buffer') {
if (property !== undefined) {
inflight[partId].bufferLen += property.length; inflight[partId].bufferLen += property.length;
} }
}
if (payloadType === 'object') { if (payloadType === 'object') {
group.payload[propertyKey] = property; group.payload[propertyKey] = property;
group.currentCount = (group.currentCount || 0) + 1; group.currentCount = (group.currentCount || 0) + 1;