From ad5ea44aeb8bc6e0ad36270538ee8690526468d8 Mon Sep 17 00:00:00 2001 From: Chris Rienzo Date: Tue, 25 Jun 2013 07:42:34 -0400 Subject: [PATCH] mod_rayo: don't send item-not-found to replies --- src/mod/event_handlers/mod_rayo/mod_rayo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/event_handlers/mod_rayo/mod_rayo.c b/src/mod/event_handlers/mod_rayo/mod_rayo.c index 36200aa2fb..3901a1b79f 100644 --- a/src/mod/event_handlers/mod_rayo/mod_rayo.c +++ b/src/mod/event_handlers/mod_rayo/mod_rayo.c @@ -603,7 +603,7 @@ static void *SWITCH_THREAD_FUNC deliver_message_thread(switch_thread_t *thread, actor->send_fn(actor, msg); switch_mutex_unlock(actor->mutex); RAYO_UNLOCK(actor); - } else { + } else if (!msg->is_reply) { /* unknown actor */ RAYO_SEND_REPLY(globals.server, msg->from_jid, iks_new_error(msg->payload, STANZA_ERROR_ITEM_NOT_FOUND)); }