mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
During halt only shutdown MUC rooms on local node
This commit is contained in:
parent
6604b9efbb
commit
a168340838
@ -115,7 +115,8 @@ shutdown_rooms(Host) ->
|
||||
Rooms = mnesia:dirty_select(muc_online_room,
|
||||
[{#muc_online_room{name_host = '$1',
|
||||
pid = '$2'},
|
||||
[{'==', {element, 2, '$1'}, MyHost}],
|
||||
[{'==', {element, 2, '$1'}, MyHost},
|
||||
{'==', {node, '$2'}, node()}],
|
||||
['$2']}]),
|
||||
[Pid ! shutdown || Pid <- Rooms],
|
||||
Rooms.
|
||||
|
Loading…
Reference in New Issue
Block a user