25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00

* src/ejabberd_listener.erl: When stopping a listener, don't stop

the listener supervisor (EJAB-874)

SVN Revision: 1891
This commit is contained in:
Badlop 2009-02-20 14:51:13 +00:00
parent 6e055f60de
commit ce03742e1b
2 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2009-02-20 Badlop <badlop@process-one.net>
* src/ejabberd_listener.erl: When stopping a listener, don't stop
the listener supervisor (EJAB-874)
2009-02-19 Christophe Romain <christophe.romain@process-one.net> 2009-02-19 Christophe Romain <christophe.romain@process-one.net>
* src/mod_pubsub/mod_pubsub.erl: fix nodetree plugin resolver * src/mod_pubsub/mod_pubsub.erl: fix nodetree plugin resolver

View File

@ -260,10 +260,7 @@ start_listener_sup(Port, Module, Opts) ->
stop_listener(Port, Module) -> stop_listener(Port, Module) ->
supervisor:terminate_child(ejabberd_listeners, Port), supervisor:terminate_child(ejabberd_listeners, Port),
supervisor:delete_child(ejabberd_listeners, Port), supervisor:delete_child(ejabberd_listeners, Port).
Proc1 = gen_mod:get_module_proc("sup", Module),
supervisor:terminate_child(ejabberd_sup, Proc1),
supervisor:delete_child(ejabberd_sup, Proc1).
%% @spec (PortIP, Module, Opts) -> {ok, Pid} | {error, Error} %% @spec (PortIP, Module, Opts) -> {ok, Pid} | {error, Error}
%% where %% where