mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
Return ejabberd_sm:stop/0 back
This commit is contained in:
parent
f310d7bb12
commit
c15d230a57
@ -36,6 +36,7 @@
|
|||||||
|
|
||||||
%% API
|
%% API
|
||||||
-export([start_link/0,
|
-export([start_link/0,
|
||||||
|
stop/0,
|
||||||
route/1,
|
route/1,
|
||||||
route/2,
|
route/2,
|
||||||
process_iq/1,
|
process_iq/1,
|
||||||
@ -111,6 +112,12 @@
|
|||||||
start_link() ->
|
start_link() ->
|
||||||
?GEN_SERVER:start_link({local, ?MODULE}, ?MODULE, [], []).
|
?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.
|
-spec route(jid(), term()) -> ok.
|
||||||
%% @doc route arbitrary term to c2s process(es)
|
%% @doc route arbitrary term to c2s process(es)
|
||||||
route(To, Term) ->
|
route(To, Term) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user