25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +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 8a0ccfc401
commit e2c3925b7d

View File

@ -353,6 +353,9 @@ handle_info({route, From, To, Packet}, StateName, StateData) ->
Err = jlib:make_error_reply(Packet, ?ERR_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}.