mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 06:25:04 +00:00
Do not retry Delete messages on actor error.
This commit is contained in:
parent
bfdaf380ea
commit
25b0829470
1 changed files with 6 additions and 0 deletions
|
@ -1511,6 +1511,12 @@ int process_input_message(snac *snac, xs_dict *msg, xs_dict *req)
|
|||
}
|
||||
|
||||
if (!valid_status(a_status)) {
|
||||
/* do not retry 'Delete' messages */
|
||||
if (strcmp(type, "Delete") == 0) {
|
||||
srv_debug(1, xs_fmt("dropping 'Delete' message due to actor error", actor, a_status));
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* other actor download errors may need a retry */
|
||||
srv_debug(1, xs_fmt("error requesting actor %s %d -- retry later", actor, a_status));
|
||||
|
||||
|
|
Loading…
Reference in a new issue