Skip to content

Commit 636b2f8

Browse files
author
Emile Joubert
committed
Merged bug24631 into default
2 parents 0c9e226 + bd7547a commit 636b2f8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/rabbit_reader.erl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,10 +329,14 @@ handle_other({'$gen_call', From, {info, Items}}, Deb, State) ->
329329
catch Error -> {error, Error}
330330
end),
331331
mainloop(Deb, State);
332-
handle_other({'$gen_cast', force_event_refresh}, Deb, State) ->
332+
handle_other({'$gen_cast', force_event_refresh}, Deb, State)
333+
when ?IS_RUNNING(State) ->
333334
rabbit_event:notify(connection_created,
334335
[{type, network} | infos(?CREATION_EVENT_KEYS, State)]),
335336
mainloop(Deb, State);
337+
handle_other({'$gen_cast', force_event_refresh}, Deb, State) ->
338+
%% Ignore, we will emit a created event once we start running.
339+
mainloop(Deb, State);
336340
handle_other(emit_stats, Deb, State) ->
337341
mainloop(Deb, emit_stats(State));
338342
handle_other({system, From, Request}, Deb, State = #v1{parent = Parent}) ->

0 commit comments

Comments
 (0)