aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src/base/diameter_watchdog.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2014-05-20 02:21:22 +0200
committerAnders Svensson <[email protected]>2014-05-20 09:51:10 +0200
commit53aa56b26eeb97c99bd125b53121f5a3f4767949 (patch)
treee3754ea3f554d9712a640bd55523143701298ebc /lib/diameter/src/base/diameter_watchdog.erl
parent6d087921e7608691ed5cd554484a13b961d3620f (diff)
downloadotp-53aa56b26eeb97c99bd125b53121f5a3f4767949.tar.gz
otp-53aa56b26eeb97c99bd125b53121f5a3f4767949.tar.bz2
otp-53aa56b26eeb97c99bd125b53121f5a3f4767949.zip
Simplify sending of 'close' to watchdog
There's no need to send the message immediately if there's no transport configuration since that in itself means the service process will tell the watchdogs to die.
Diffstat (limited to 'lib/diameter/src/base/diameter_watchdog.erl')
-rw-r--r--lib/diameter/src/base/diameter_watchdog.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/diameter/src/base/diameter_watchdog.erl b/lib/diameter/src/base/diameter_watchdog.erl
index 62dc32af69..9ec291897e 100644
--- a/lib/diameter/src/base/diameter_watchdog.erl
+++ b/lib/diameter/src/base/diameter_watchdog.erl
@@ -415,11 +415,13 @@ transition({open = Key, TPid, _Hosts, T},
%% REOPEN Connection down CloseConnection()
%% SetWatchdog() DOWN
+%% Transport has died after service requested termination ...
transition({'DOWN', _, process, TPid, _Reason},
#watchdog{transport = TPid,
shutdown = true}) ->
stop;
+%% ... or not.
transition({'DOWN', _, process, TPid, _Reason},
#watchdog{transport = TPid,
status = T,