mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 17:59:31 +02:00
Correctly set gen_server's name
This commit is contained in:
parent
65d352d5de
commit
0078a3b904
1 changed files with 2 additions and 1 deletions
|
@ -35,7 +35,8 @@
|
|||
%%% API
|
||||
%%%===================================================================
|
||||
init(Host, Opts) ->
|
||||
case gen_server:start_link({local, ?MODULE}, ?MODULE, [Host, Opts], []) of
|
||||
Name = gen_mod:get_module_proc(Host, ?MODULE),
|
||||
case gen_server:start_link({local, Name}, ?MODULE, [Host, Opts], []) of
|
||||
{ok, _Pid} ->
|
||||
ok;
|
||||
Err ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue