mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 05:15:04 +00:00
If an actor cannot be retrieved, move the message back to the queue.
This commit is contained in:
parent
e4967cfcb3
commit
51ed24be47
1 changed files with 6 additions and 1 deletions
|
@ -574,7 +574,12 @@ void process_message(snac *snac, char *msg, char *req)
|
|||
utype = "(null)";
|
||||
|
||||
/* bring the actor */
|
||||
actor_request(snac, actor, &actor_o);
|
||||
if (!valid_status(actor_request(snac, actor, &actor_o))) {
|
||||
/* error: re-enqueue to try later */
|
||||
enqueue_input(snac, msg, req);
|
||||
snac_log(snac, xs_fmt("error requesting actor %s -- retry later", actor));
|
||||
return;
|
||||
}
|
||||
|
||||
/* check the signature */
|
||||
/* ... */
|
||||
|
|
Loading…
Reference in a new issue