mirror of https://github.com/node-red/node-red.git
let split node reassemble based on a final packet. (as well as the first)
parent
56405ac903
commit
55110dfbac
|
@ -416,7 +416,7 @@ module.exports = function(RED) {
|
|||
}
|
||||
// TODO: currently reuse the last received - add option to pick first received
|
||||
group.msg = msg;
|
||||
if (group.currentCount >= group.targetCount || msg.hasOwnProperty('complete')) {
|
||||
if (group.currentCount >= (group.targetCount || msg.parts.count) || msg.hasOwnProperty('complete')) {
|
||||
completeSend(partId);
|
||||
}
|
||||
} catch(err) {
|
||||
|
|
Loading…
Reference in New Issue