* src/mod_echo.erl: The mod_echo can now be stopped without errors.

This is not a major issue, but can mislead other developers learning
from this example and test module (Thanks to Magnus Henoch) (EJAB-163).

SVN Revision: 696
This commit is contained in:
Mickaël Rémond 2006-12-15 22:18:04 +00:00
parent c265da885a
commit 76522293a5
2 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,9 @@
2006-12-15 Mickael Remond <mickael.remond@process-one.net>
* src/mod_echo.erl: The mod_echo can now be stopped without errors.
This is not a major issue, but can mislead other developers learning
from this example and test module (Thanks to Magnus Henoch).
* TODO: Removed. The roadmap is managed on:
http://support.process-one.net/browse/EJAB

View File

@ -52,7 +52,9 @@ start(Host, Opts) ->
stop(Host) ->
Proc = gen_mod:get_module_proc(Host, ?PROCNAME),
gen_server:call(Proc, stop),
supervisor:stop_child(ejabberd_sup, Proc).
supervisor:terminate_child(ejabberd_sup, Proc),
supervisor:delete_child(ejabberd_sup, Proc).
%%====================================================================
%% gen_server callbacks