aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src/base/diameter_service.erl
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2015-12-20 16:29:09 +0100
committerErlang/OTP <[email protected]>2015-12-20 16:29:09 +0100
commit63661fbed2753922e212c9dabdab93acdf5610d8 (patch)
treed98e74c119478f53784d75079996726e0bc0cbf8 /lib/diameter/src/base/diameter_service.erl
parent6122b6129aca80be185c07d50415f993d4bd5a58 (diff)
parent68198c72bc4924d42ea54b4ea0997109ec59cfeb (diff)
downloadotp-63661fbed2753922e212c9dabdab93acdf5610d8.tar.gz
otp-63661fbed2753922e212c9dabdab93acdf5610d8.tar.bz2
otp-63661fbed2753922e212c9dabdab93acdf5610d8.zip
Merge branch 'anders/diameter/17.5.6.7/OTP-13211' into maint-17
* anders/diameter/17.5.6.7/OTP-13211: vsn -> 1.9.2.2 Update/fix appup for 17.5.6.7 Be resilient to diameter_service state upgrades
Diffstat (limited to 'lib/diameter/src/base/diameter_service.erl')
-rw-r--r--lib/diameter/src/base/diameter_service.erl9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/diameter/src/base/diameter_service.erl b/lib/diameter/src/base/diameter_service.erl
index 7d4a24f7a0..87bc9516e0 100644
--- a/lib/diameter/src/base/diameter_service.erl
+++ b/lib/diameter/src/base/diameter_service.erl
@@ -207,7 +207,7 @@ stop_transport(SvcName, [_|_] = Refs) ->
info(SvcName, Item) ->
case lookup_state(SvcName) of
- [#state{} = S] ->
+ [S] ->
service_info(Item, S);
[] ->
undefined
@@ -216,7 +216,12 @@ info(SvcName, Item) ->
%% lookup_state/1
lookup_state(SvcName) ->
- ets:lookup(?STATE_TABLE, SvcName).
+ case ets:lookup(?STATE_TABLE, SvcName) of
+ [#state{}] = L ->
+ L;
+ _ ->
+ []
+ end.
%% ---------------------------------------------------------------------------
%% # subscribe/1