aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/src/base
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2015-12-22 15:16:22 +0100
committerAnders Svensson <[email protected]>2015-12-22 15:16:22 +0100
commitfc7eb7da8b9ccbc883f2001cf14021da8c85da4d (patch)
treec4c3d11721aaedeb2d124943f8aa91548432d83f /lib/diameter/src/base
parent9088c48800c851f2b85cac8bcb0643a97525c283 (diff)
parentd7db1f1612e8a5a8a732a7e055ba5618778f1ac2 (diff)
downloadotp-fc7eb7da8b9ccbc883f2001cf14021da8c85da4d.tar.gz
otp-fc7eb7da8b9ccbc883f2001cf14021da8c85da4d.tar.bz2
otp-fc7eb7da8b9ccbc883f2001cf14021da8c85da4d.zip
Merge branch 'maint-17' into 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 13508321c3..d49176ec3e 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