aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2011-11-29 17:21:37 +0100
committerAnders Svensson <[email protected]>2011-11-29 17:21:37 +0100
commit0eb8d09800265c2c1f7a3998ff28c07abbfb2558 (patch)
tree1a2daf30870100b3f6ac5930057d32f3d49b5df4 /lib/diameter
parent8e8fa01525dabf757009054798569aba115d2952 (diff)
downloadotp-0eb8d09800265c2c1f7a3998ff28c07abbfb2558.tar.gz
otp-0eb8d09800265c2c1f7a3998ff28c07abbfb2558.tar.bz2
otp-0eb8d09800265c2c1f7a3998ff28c07abbfb2558.zip
Fix transport restart bug
This caused transport processes to be restarted even though diameter:remove_transport/2 had removed their configuration from table.
Diffstat (limited to 'lib/diameter')
-rw-r--r--lib/diameter/src/base/diameter_service.erl9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/diameter/src/base/diameter_service.erl b/lib/diameter/src/base/diameter_service.erl
index 7adcf1c265..a85dda216d 100644
--- a/lib/diameter/src/base/diameter_service.erl
+++ b/lib/diameter/src/base/diameter_service.erl
@@ -647,11 +647,6 @@ mod_state(Alias) ->
mod_state(Alias, ModS) ->
put({?MODULE, mod_state, Alias}, ModS).
-%% have_transport/2
-
-have_transport(SvcName, Ref) ->
- [] /= diameter_config:have_transport(SvcName, Ref).
-
%%% ---------------------------------------------------------------------------
%%% # shutdown/2
%%% ---------------------------------------------------------------------------
@@ -1131,7 +1126,7 @@ start_tc(Tc, T, _) ->
%% tc_timeout/2
tc_timeout({Ref, _Type, _Opts} = T, #state{service_name = SvcName} = S) ->
- tc(have_transport(SvcName, Ref), T, S).
+ tc(diameter_config:have_transport(SvcName, Ref), T, S).
tc(true, {Ref, Type, Opts}, #state{service_name = SvcName}
= S) ->
@@ -1159,7 +1154,7 @@ close(Pid, #state{service_name = SvcName,
options = Opts}
= fetch(PeerT, Pid),
- c(Pid, have_transport(SvcName, Ref), Opts).
+ c(Pid, diameter_config:have_transport(SvcName, Ref), Opts).
%% Tell watchdog to (maybe) die later ...
c(Pid, true, Opts) ->