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 committed by Nick O'Leary
parent 90887779ea
commit e346702292
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -628,8 +628,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 = Object.keys(group.payload).length; group.currentCount = Object.keys(group.payload).length;