aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src/base
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2015-12-22 15:17:25 +0100
committerAnders Svensson <[email protected]>2015-12-22 15:17:25 +0100
commit5daa0591e671d3a08988d80e295df3b0c7b002e5 (patch)
tree5d49a2d773034399bb026022aa20371561391e83 /lib/diameter/src/base
parent1c020c2748732c39627ecd2f19827f0b605d4672 (diff)
parentfc7eb7da8b9ccbc883f2001cf14021da8c85da4d (diff)
downloadotp-5daa0591e671d3a08988d80e295df3b0c7b002e5.tar.gz
otp-5daa0591e671d3a08988d80e295df3b0c7b002e5.tar.bz2
otp-5daa0591e671d3a08988d80e295df3b0c7b002e5.zip
Merge branch 'maint'
Diffstat (limited to 'lib/diameter/src/base')
-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 86781c02bf..58b1cd742b 100644
--- a/lib/diameter/src/base/diameter_service.erl
+++ b/lib/diameter/src/base/diameter_service.erl
@@ -208,7 +208,7 @@ stop_transport(SvcName, [_|_] = Refs) ->
info(SvcName, Item) ->
case lookup_state(SvcName) of
- [#state{} = S] ->
+ [S] ->
service_info(Item, S);
[] ->
undefined
@@ -217,7 +217,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