int r, slice_num;
if (group_complete(fg)) {
+ PARA_DEBUG_LOG("group complete, ignoring slice %d\n",
+ fg->h.slice_num);
fg->num_received_slices++;
return 0;
}
ret = get_group(h, pfd, &fg);
if (ret < 0)
return ret;
- if (group_complete(fg)) {
- PARA_DEBUG_LOG("group complete, ignoring slice %d\n",
- h->slice_num);
+ if (!add_slice(buf, fg))
return 1;
- }
- ret = add_slice(buf, fg);
- if (ret < 0)
- return ret;
if (group_complete(fg)) {
if (!pfd->fec) {
int k = h->data_slices_per_group, n = h->slices_per_group;