From fc8c92a23301ab7e18ff2ddb7a066477fde3d68d Mon Sep 17 00:00:00 2001 From: Badlop Date: Thu, 6 Dec 2007 15:40:21 +0000 Subject: * src/mod_muc/mod_muc.erl: Catch creation of table muc_online_users: it may be already created by other mod_muc instance SVN Revision: 1036 --- src/mod_muc/mod_muc.erl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') diff --git a/src/mod_muc/mod_muc.erl b/src/mod_muc/mod_muc.erl index 09061650a..fe315a616 100644 --- a/src/mod_muc/mod_muc.erl +++ b/src/mod_muc/mod_muc.erl @@ -149,10 +149,7 @@ init([Host, Opts]) -> [{ram_copies, [node()]}, {attributes, record_info(fields, muc_online_room)}]), mnesia:add_table_copy(muc_online_room, node(), ram_copies), - ets:new(muc_online_users, [bag, - named_table, - public, - {keypos, 2}]), + catch ets:new(muc_online_users, [bag, named_table, public, {keypos, 2}]), MyHost = gen_mod:get_opt_host(Host, Opts, "conference.@HOST@"), update_tables(MyHost), clean_table_from_bad_node(node(), MyHost), -- cgit v1.2.3