aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src/base/diameter_config.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2012-08-23 20:53:53 +0200
committerAnders Svensson <[email protected]>2012-08-24 13:12:58 +0200
commite93b194345b563e9f5bc6264e577ef839d2f1ab2 (patch)
tree554d080fe3f324c43e96b35423da4a0b89ad4fb1 /lib/diameter/src/base/diameter_config.erl
parentcfea5eea406ba3af96588ff458e55de9a149d9c5 (diff)
downloadotp-e93b194345b563e9f5bc6264e577ef839d2f1ab2.tar.gz
otp-e93b194345b563e9f5bc6264e577ef839d2f1ab2.tar.bz2
otp-e93b194345b563e9f5bc6264e577ef839d2f1ab2.zip
Statistics fixes
Statistics are deleted as a consequence of diameter:remove_transport/2.
Diffstat (limited to 'lib/diameter/src/base/diameter_config.erl')
-rw-r--r--lib/diameter/src/base/diameter_config.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/diameter/src/base/diameter_config.erl b/lib/diameter/src/base/diameter_config.erl
index 9253af0de2..eb06045ace 100644
--- a/lib/diameter/src/base/diameter_config.erl
+++ b/lib/diameter/src/base/diameter_config.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2010-2011. All Rights Reserved.
+%% Copyright Ericsson AB 2010-2012. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -519,6 +519,7 @@ rm(SvcName, L) ->
Refs = lists:map(fun(#transport{ref = R}) -> R end, L),
case stop_transport(SvcName, Refs) of
ok ->
+ diameter_stats:flush(Refs),
lists:foreach(fun delete_object/1, L);
{error, _} = No ->
No