Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
Merge pull request #274 from rabbitmq/rabbitmq-server-500-squashed
Browse files Browse the repository at this point in the history
Don't assume connection_closed details only contain a pid
  • Loading branch information
dumbbell authored Aug 23, 2016
2 parents 9287764 + 5ea5320 commit ba08401
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rabbit_mgmt_event_collector_utils.erl
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ handle_event(#event{type = connection_stats, props = Stats,
?COARSE_CONN_STATS, ?PROCESS_STATS, State);

handle_event(Event = #event{type = connection_closed,
props = [{pid, Pid}]}, _State) ->
props = Stats}, _State) ->
Pid = rabbit_misc:pget(pid, Stats),
delete_samples(connection_stats, Pid),
handle_deleted(connection_stats, Event);

Expand Down

0 comments on commit ba08401

Please sign in to comment.