Skip to content

Commit

Permalink
Don't exit list processing on error.
Browse files Browse the repository at this point in the history
When encountering an error in one of the list nodes,
continue processing the next node instead of exiting.
  • Loading branch information
vyzigold committed Aug 12, 2020
1 parent ce49911 commit 9ff915f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions socket_snd_th.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ static int process_message_body(app_data_t *app, pn_data_t *body) {
size_t count = pn_data_get_list(body);
pn_data_enter(body);
for (size_t i = 0; i < count; i++) {
if (pn_data_next(body) && !err) {
err = process_message_body(app, body);
if (pn_data_next(body)) {
err += process_message_body(app, body);
}
}
pn_data_exit(body);
Expand Down

0 comments on commit 9ff915f

Please sign in to comment.