diff options
author | Paweł Chmielowski <pchmielowski@process-one.net> | 2019-01-22 14:40:01 +0100 |
---|---|---|
committer | Paweł Chmielowski <pchmielowski@process-one.net> | 2019-01-22 14:40:01 +0100 |
commit | 9e0baef233329e37639c033ccf80eba7b626a246 (patch) | |
tree | 14c5b307a19eab29ed1c85a9b55080abc202cd26 /src | |
parent | Make sure that room_destroyed is called even when some code throws in terminate (diff) |
Make last commit compile on R19
Diffstat (limited to 'src')
-rw-r--r-- | src/mod_muc_room.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mod_muc_room.erl b/src/mod_muc_room.erl index 8bbdd8d97..988544d8a 100644 --- a/src/mod_muc_room.erl +++ b/src/mod_muc_room.erl @@ -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. |