mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
Merge 1907 from trunk.
* src/ejabberd_listener.erl: Fix a minor compilation warning and add EDoc comment SVN Revision: 1954
This commit is contained in:
parent
dbf0bb209d
commit
4df4527e77
@ -1,5 +1,8 @@
|
||||
2009-03-03 Badlop <badlop@process-one.net>
|
||||
|
||||
* src/ejabberd_listener.erl: Fix a minor compilation warning and
|
||||
add EDoc comment
|
||||
|
||||
* src/ejabberd_listener.erl: When stopping a listener, don't stop
|
||||
the listener supervisor (EJAB-874)
|
||||
|
||||
|
@ -258,9 +258,16 @@ start_listener_sup(Port, Module, Opts) ->
|
||||
[?MODULE]},
|
||||
supervisor:start_child(ejabberd_listeners, ChildSpec).
|
||||
|
||||
stop_listener(Port, Module) ->
|
||||
supervisor:terminate_child(ejabberd_listeners, Port),
|
||||
supervisor:delete_child(ejabberd_listeners, Port).
|
||||
%% @spec (PortIP, Module) -> ok
|
||||
%% where
|
||||
%% PortIP = {Port, IPT | IPS}
|
||||
%% Port = integer()
|
||||
%% IPT = tuple()
|
||||
%% IPS = string()
|
||||
%% Module = atom()
|
||||
stop_listener(PortIP, _Module) ->
|
||||
supervisor:terminate_child(ejabberd_listeners, PortIP),
|
||||
supervisor:delete_child(ejabberd_listeners, PortIP).
|
||||
|
||||
%% @spec (PortIP, Module, Opts) -> {ok, Pid} | {error, Error}
|
||||
%% where
|
||||
|
Loading…
Reference in New Issue
Block a user