Fire group sync completion event despite errors

Sometimes an error is thrown while processing groups from a group sync
message. We still want to fire the groupsync event when we're done
handling all the data, even if some of it was bad.
This commit is contained in:
lilia 2016-01-14 15:36:12 -08:00
parent 75b2c9c5de
commit 1b68e652cc
2 changed files with 4 additions and 0 deletions

View file

@ -37058,6 +37058,8 @@ MessageReceiver.prototype.extend({
var ev = new Event('group');
ev.groupDetails = groupDetails;
eventTarget.dispatchEvent(ev);
}).catch(function(e) {
console.log('error processing group', groupDetails.id, e);
});
})(groupDetails);
groupDetails = groupBuffer.next();

View file

@ -244,6 +244,8 @@ MessageReceiver.prototype.extend({
var ev = new Event('group');
ev.groupDetails = groupDetails;
eventTarget.dispatchEvent(ev);
}).catch(function(e) {
console.log('error processing group', groupDetails.id, e);
});
})(groupDetails);
groupDetails = groupBuffer.next();