25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

Return ejabberd_sm:stop/0 back

This commit is contained in:
Evgeniy Khramtsov 2017-02-24 12:39:44 +03:00
parent f310d7bb12
commit c15d230a57

View File

@ -36,6 +36,7 @@
%% API
-export([start_link/0,
stop/0,
route/1,
route/2,
process_iq/1,
@ -111,6 +112,12 @@
start_link() ->
?GEN_SERVER:start_link({local, ?MODULE}, ?MODULE, [], []).
-spec stop() -> ok.
stop() ->
supervisor:terminate_child(ejabberd_sup, ?MODULE),
supervisor:delete_child(ejabberd_sup, ?MODULE),
ok.
-spec route(jid(), term()) -> ok.
%% @doc route arbitrary term to c2s process(es)
route(To, Term) ->