mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Fix crash when destroying room without providing reason (#1954)
This commit is contained in:
parent
ba9a79c89c
commit
2fa6e2fd90
@ -492,7 +492,7 @@ handle_event({destroy, Reason}, _StateName,
|
||||
handle_event(destroy, StateName, StateData) ->
|
||||
?INFO_MSG("Destroyed MUC room ~s",
|
||||
[jid:encode(StateData#state.jid)]),
|
||||
handle_event({destroy, undefined}, StateName, StateData);
|
||||
handle_event({destroy, <<"">>}, StateName, StateData);
|
||||
handle_event({set_affiliations, Affiliations},
|
||||
StateName, StateData) ->
|
||||
{next_state, StateName,
|
||||
|
Loading…
Reference in New Issue
Block a user