diff options
author | Christophe Romain <christophe.romain@process-one.net> | 2015-12-09 15:40:20 +0100 |
---|---|---|
committer | Christophe Romain <christophe.romain@process-one.net> | 2015-12-11 14:13:24 +0100 |
commit | 8ee5f9fb6f311d3a7ab1512b4cf9f3de8ba74ff6 (patch) | |
tree | e826652ab2ac566ee085c0d480f582ffa9bbdec4 /src/ejabberd_http_bind.erl | |
parent | Remove receiver's supervisor (diff) |
Remove http supervisors
Diffstat (limited to 'src/ejabberd_http_bind.erl')
-rw-r--r-- | src/ejabberd_http_bind.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ejabberd_http_bind.erl b/src/ejabberd_http_bind.erl index 194b099d..e7239772 100644 --- a/src/ejabberd_http_bind.erl +++ b/src/ejabberd_http_bind.erl @@ -152,9 +152,9 @@ start(XMPPDomain, Sid, Key, IP, HOpts) -> ?DEBUG("Starting session", []), - SupervisorProc = gen_mod:get_module_proc(XMPPDomain, ?PROCNAME_MHB), - case catch supervisor:start_child(SupervisorProc, - [Sid, Key, IP, HOpts]) + case catch gen_fsm:start(?MODULE, + [Sid, Key, IP, HOpts], + ?FSMOPTS) of {ok, Pid} -> {ok, Pid}; _ -> check_bind_module(XMPPDomain), |