]> granicus.if.org Git - ejabberd/commitdiff
Fix crash when destroying room without providing reason (#1954)
authorBadlop <badlop@process-one.net>
Mon, 21 Aug 2017 13:57:48 +0000 (15:57 +0200)
committerBadlop <badlop@process-one.net>
Mon, 21 Aug 2017 13:57:48 +0000 (15:57 +0200)
src/mod_muc_room.erl

index 2a1ca6011fc1ca83bab0363beb292b59877fcc44..fde43694c145f5b53b49be764d34d88676f38924 100644 (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,