25
1
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:
Evgeniy Khramtsov 2018-06-25 14:55:33 +03:00
parent e7c3b57b8b
commit 5dd3f4c22b

View File

@ -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).