25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-10-31 15:21:38 +01:00

Assign failed_auth ETS table to another owner

This commit is contained in:
Evgeniy Khramtsov 2017-11-13 14:34:59 +03:00
parent 1413f5dd23
commit 9daf2dd925

View File

@ -104,7 +104,8 @@ c2s_stream_started(#{ip := {Addr, _}} = State, _) ->
%% gen_mod callbacks
%%====================================================================
start(Host, Opts) ->
catch ets:new(failed_auth, [named_table, public]),
catch ets:new(failed_auth, [named_table, public,
{heir, erlang:group_leader(), none}]),
gen_mod:start_child(?MODULE, Host, Opts).
stop(Host) ->