mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +01:00
Allow gen_server process registration
This commit is contained in:
parent
e7c3b57b8b
commit
5dd3f4c22b
@ -130,9 +130,13 @@
|
||||
%%%===================================================================
|
||||
%%% API
|
||||
%%%===================================================================
|
||||
start({local, Mod}, Args, Opts) ->
|
||||
?GEN_SERVER:start({local, Mod}, ?MODULE, [Mod|Args], Opts ++ ?FSMOPTS);
|
||||
start(Mod, Args, Opts) ->
|
||||
?GEN_SERVER:start(?MODULE, [Mod|Args], Opts ++ ?FSMOPTS).
|
||||
|
||||
start_link({local, Mod}, Args, Opts) ->
|
||||
?GEN_SERVER:start_link({local, Mod}, ?MODULE, [Mod|Args], Opts ++ ?FSMOPTS);
|
||||
start_link(Mod, Args, Opts) ->
|
||||
?GEN_SERVER:start_link(?MODULE, [Mod|Args], Opts ++ ?FSMOPTS).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user