Skip to content

Commit

Permalink
Ignore force_event_refresh if we have not finished handshaking.
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon MacMullen committed Dec 15, 2011
1 parent 6cf72c5 commit bd7547a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/rabbit_reader.erl
Original file line number Diff line number Diff line change
Expand Up @@ -329,10 +329,14 @@ handle_other({'$gen_call', From, {info, Items}}, Deb, State) ->
catch Error -> {error, Error}
end),
mainloop(Deb, State);
handle_other({'$gen_cast', force_event_refresh}, Deb, State) ->
handle_other({'$gen_cast', force_event_refresh}, Deb, State)
when ?IS_RUNNING(State) ->
rabbit_event:notify(connection_created,
[{type, network} | infos(?CREATION_EVENT_KEYS, State)]),
mainloop(Deb, State);
handle_other({'$gen_cast', force_event_refresh}, Deb, State) ->
%% Ignore, we will emit a created event once we start running.
mainloop(Deb, State);
handle_other(emit_stats, Deb, State) ->
mainloop(Deb, emit_stats(State));
handle_other({system, From, Request}, Deb, State = #v1{parent = Parent}) ->
Expand Down

0 comments on commit bd7547a

Please sign in to comment.