Commit cc5c18ef authored by Thomas Klausner's avatar Thomas Klausner

Allow routing messages in state CLOSING_GRACE.

Otherwise, replies can't get out, defeating the purpose of
CLOSING_GRACE.
parent bd942503
......@@ -878,7 +878,7 @@ static int msg_rt_out(struct msg * msg)
/* Find the peer corresponding to this name */
CHECK_FCT( fd_peer_getbyid( qry_src, qry_src_len, 0, (void *) &peer ) );
if (fd_peer_getstate(peer) != STATE_OPEN) {
if (fd_peer_getstate(peer) != STATE_OPEN && fd_peer_getstate(peer) != STATE_CLOSING_GRACE) {
char buf[128];
snprintf(buf, sizeof(buf), "Unable to forward answer to deleted / closed peer '%s'.", qry_src);
fd_hook_call(HOOK_MESSAGE_ROUTING_ERROR, msgptr, NULL, buf, fd_msg_pmdl_get(msgptr));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment