25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-26 16:26:24 +01:00

Discard unmatched INFO messages in ejabberd services.

This patch will stop services terminating with function clause messages,
but doesn't affect the message queue at all.
This commit is contained in:
Andreas Köhler 2010-09-17 16:42:35 +02:00 committed by Badlop
parent 1cbfdce457
commit afac34de88

View File

@ -349,6 +349,9 @@ handle_info({route, From, To, Packet}, StateName, StateData) ->
Err = exmpp_stanza:reply_with_error(Packet, 'not-allowed'),
ejabberd_router:route_error(To, From, Err, Packet)
end,
{next_state, StateName, StateData};
handle_info(Info, StateName, StateData) ->
?ERROR_MSG("Unexpected info: ~p", [Info]),
{next_state, StateName, StateData}.