diff options
author | Christophe Romain <christophe.romain@process-one.net> | 2010-10-13 10:54:12 +0200 |
---|---|---|
committer | Christophe Romain <christophe.romain@process-one.net> | 2010-10-13 10:54:12 +0200 |
commit | a93f4f77505e78f88bbee46e215197460e358b55 (patch) | |
tree | 129a8ca23365cd59f60f72e4765bdd48425bb5fd /src/web/mod_http_bind.erl | |
parent | add find_s2s_bridge hook (diff) |
make http-bind restartable (thanks to Andreas Köhler)(EJAB-1318)
Diffstat (limited to '')
-rw-r--r-- | src/web/mod_http_bind.erl | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/web/mod_http_bind.erl b/src/web/mod_http_bind.erl index 25e964f9..8e750acf 100644 --- a/src/web/mod_http_bind.erl +++ b/src/web/mod_http_bind.erl @@ -117,7 +117,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) -> @@ -125,7 +125,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() -> |