From a73d451576a85731eb21916d273a1e0d9c8f6798 Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Wed, 13 Oct 2010 10:55:35 +0200 Subject: [PATCH] =?UTF-8?q?make=20http-bind=20restartable=20(thanks=20to?= =?UTF-8?q?=20Andreas=20K=C3=B6hler)(EJAB-1318)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/web/mod_http_bind.erl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/web/mod_http_bind.erl b/src/web/mod_http_bind.erl index 32d702eb0..a8b47019c 100644 --- a/src/web/mod_http_bind.erl +++ b/src/web/mod_http_bind.erl @@ -120,7 +120,7 @@ start(_Host, _Opts) -> % mod_http_bind is already started so it will not be started again ok; {error, Error} -> - {'EXIT', {start_child_error, Error}} + exit({start_child_error, Error}) end. stop(_Host) -> @@ -128,7 +128,13 @@ stop(_Host) -> ok -> ok; {error, Error} -> - {'EXIT', {terminate_child_error, Error}} + exit({terminate_child_error, Error}) + end, + case supervisor:delete_child(ejabberd_sup, ejabberd_http_bind_sup) of + ok -> + ok; + {error, Error2} -> + exit({delete_child_error, Error2}) end. setup_database() ->