mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-30 16:36:29 +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:
parent
1cbfdce457
commit
afac34de88
@ -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}.
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user