diff options
Diffstat (limited to 'src/mod_http_bind.erl')
-rw-r--r-- | src/mod_http_bind.erl | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/src/mod_http_bind.erl b/src/mod_http_bind.erl index fbf43e80f..fd871705f 100644 --- a/src/mod_http_bind.erl +++ b/src/mod_http_bind.erl @@ -81,19 +81,11 @@ process(_Path, _Request) -> %%%---------------------------------------------------------------------- %%% BEHAVIOUR CALLBACKS %%%---------------------------------------------------------------------- -start(Host, _Opts) -> - setup_database(), - Proc = gen_mod:get_module_proc(Host, ?PROCNAME_MHB), - ChildSpec = {Proc, - {ejabberd_tmp_sup, start_link, - [Proc, ejabberd_http_bind]}, - permanent, infinity, supervisor, [ejabberd_tmp_sup]}, - supervisor:start_child(ejabberd_sup, ChildSpec). - -stop(Host) -> - Proc = gen_mod:get_module_proc(Host, ?PROCNAME_MHB), - supervisor:terminate_child(ejabberd_sup, Proc), - supervisor:delete_child(ejabberd_sup, Proc). +start(_Host, _Opts) -> + setup_database(). + +stop(_Host) -> + ok. setup_database() -> migrate_database(), |