Fix crash when destroying room without providing reason (#1954)

This commit is contained in:
Badlop 2017-08-21 15:57:48 +02:00
parent ba9a79c89c
commit 2fa6e2fd90
1 changed files with 1 additions and 1 deletions

View File

@ -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,