Skip to content

Commit 68a40af

Browse files
author
Daniil Fedotov
committed
Ignore pid from supervisor:start_child
1 parent baef781 commit 68a40af

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/rabbit_vhost_sup_sup.erl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@
3333
-record(vhost_sup, {vhost, vhost_sup_pid, wrapper_pid}).
3434

3535
start() ->
36-
supervisor:start_child(rabbit_sup,
37-
{?MODULE, {?MODULE, start_link, []},
38-
permanent, infinity, supervisor, [?MODULE]}).
36+
case supervisor:start_child(rabbit_sup, {?MODULE, {?MODULE, start_link, []},
37+
permanent, infinity, supervisor, [?MODULE]}) of
38+
{ok, _} -> ok;
39+
{error, Err} -> {error, Err}
40+
end.
3941

4042
start_link() ->
4143
supervisor2:start_link({local, ?MODULE}, ?MODULE, []).

0 commit comments

Comments
 (0)