summaryrefslogtreecommitdiff
path: root/src/mod_muc_room.erl
diff options
context:
space:
mode:
authorPaweł Chmielowski <pchmielowski@process-one.net>2021-03-03 11:30:43 +0100
committerPaweł Chmielowski <pchmielowski@process-one.net>2021-03-03 11:32:05 +0100
commitca5d5f3b4caf64be6de272e33617364c32465e6d (patch)
treebf86d9d7ef2bc3f70b4d3afd137575b63e861972 /src/mod_muc_room.erl
parentMerge pull request #3507 from slezakattack/master (diff)
Use monitors to track muc rooms
This should prevent keeping rooms that were hard killed from in online table.
Diffstat (limited to 'src/mod_muc_room.erl')
-rw-r--r--src/mod_muc_room.erl4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mod_muc_room.erl b/src/mod_muc_room.erl
index 3e06e284..50ad9dd1 100644
--- a/src/mod_muc_room.erl
+++ b/src/mod_muc_room.erl
@@ -913,11 +913,9 @@ terminate(Reason, _StateName,
_ ->
ok
end
- end,
- mod_muc:room_destroyed(Host, Room, self(), LServer)
+ end
catch ?EX_RULE(E, R, St) ->
StackTrace = ?EX_STACK(St),
- mod_muc:room_destroyed(Host, Room, self(), LServer),
?ERROR_MSG("Got exception on room termination:~n** ~ts",
[misc:format_exception(2, E, R, StackTrace)])
end.