We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents deca198 + 5bf280a commit 1500de4Copy full SHA for 1500de4
deps/rabbit/src/rabbit.erl
@@ -428,6 +428,16 @@ start_it(StartType) ->
428
ok
429
catch
430
error:{badmatch, Error}:_ ->
431
+ %% `rabbitmq_prelaunch' was started before `rabbit' above.
432
+ %% If the latter fails to start, we must stop the former as
433
+ %% well.
434
+ %%
435
+ %% This is important if the environment changes between
436
+ %% that error and the next attempt to start `rabbit': the
437
+ %% environment is only read during the start of
438
+ %% `rabbitmq_prelaunch' (and the cached context is cleaned
439
+ %% on stop).
440
+ _ = application:stop(rabbitmq_prelaunch),
441
stop_boot_marker(Marker),
442
case StartType of
443
temporary -> throw(Error);
0 commit comments