If an actor cannot be retrieved, move the message back to the queue.

This commit is contained in:
default 2022-09-28 20:24:47 +02:00
parent e4967cfcb3
commit 51ed24be47

View file

@ -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 */
/* ... */