Skip to content

Commit b69510d

Browse files
committed
feature_flags
1 parent 604f1f0 commit b69510d

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

deps/rabbit/src/rabbit_ff_controller.erl

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,19 @@ start_link() ->
8484

8585
wait_for_task_and_stop() ->
8686
case erlang:whereis(rabbit_sup) of
87-
undefined -> gen_statem:stop(?LOCAL_NAME);
88-
_ -> rabbit_sup:stop_child(?LOCAL_NAME)
87+
undefined ->
88+
try
89+
gen_statem:stop(?LOCAL_NAME)
90+
catch
91+
exit:noproc ->
92+
ok
93+
end;
94+
_ ->
95+
case rabbit_sup:stop_child(?LOCAL_NAME) of
96+
ok -> ok;
97+
{error, not_found} -> ok;
98+
Ret -> Ret
99+
end
89100
end.
90101

91102
is_running() ->

0 commit comments

Comments
 (0)