]> granicus.if.org Git - ejabberd/commitdiff
Make last commit compile on R19
authorPaweł Chmielowski <pchmielowski@process-one.net>
Tue, 22 Jan 2019 13:40:01 +0000 (14:40 +0100)
committerPaweł Chmielowski <pchmielowski@process-one.net>
Tue, 22 Jan 2019 13:40:01 +0000 (14:40 +0100)
src/mod_muc_room.erl

index 8bbdd8d9705c25ec1ceabee353b33568ca4d83a9..988544d8a4b35636a0e6b79f005b8ef25a423642 100644 (file)
@@ -728,9 +728,12 @@ terminate(Reason, _StateName, StateData) ->
                  tab_remove_online_user(LJID, StateData)
          end, [], get_users_and_subscribers(StateData)),
        add_to_log(room_existence, stopped, StateData),
-    after
        mod_muc:room_destroyed(StateData#state.host, StateData#state.room, self(),
                               StateData#state.server_host)
+    catch ?EX_RULE(E, R, St) ->
+           mod_muc:room_destroyed(StateData#state.host, StateData#state.room, self(),
+                                  StateData#state.server_host),
+           ?ERROR_MSG("Got exception on room termination: ~p", [{E, {R, ?EX_STACK(St)}}])
     end,
     ok.