aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/ct_netconfc.erl
diff options
context:
space:
mode:
authorPeter Andersson <[email protected]>2013-06-04 16:15:29 +0200
committerPeter Andersson <[email protected]>2013-06-04 16:15:29 +0200
commit9087aeb1fa77bb46ca5364102ed1c9eb37854447 (patch)
treefc85873dc53da408bd2baba383f395d7081c32d2 /lib/common_test/src/ct_netconfc.erl
parent3855c2e4a72533bda162e94ce4080f9b4e5b1e74 (diff)
parentcf68fec61294194b47063d2368ff916964e8644d (diff)
downloadotp-9087aeb1fa77bb46ca5364102ed1c9eb37854447.tar.gz
otp-9087aeb1fa77bb46ca5364102ed1c9eb37854447.tar.bz2
otp-9087aeb1fa77bb46ca5364102ed1c9eb37854447.zip
Merge branch 'maint'
Diffstat (limited to 'lib/common_test/src/ct_netconfc.erl')
-rw-r--r--lib/common_test/src/ct_netconfc.erl8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/common_test/src/ct_netconfc.erl b/lib/common_test/src/ct_netconfc.erl
index 28586c310e..e094ee877a 100644
--- a/lib/common_test/src/ct_netconfc.erl
+++ b/lib/common_test/src/ct_netconfc.erl
@@ -1164,13 +1164,11 @@ call(Client, Msg, Timeout, WaitStop) ->
get_handle(Client) when is_pid(Client) ->
{ok,Client};
get_handle(Client) ->
- case ct_util:get_connections(Client, ?MODULE) of
- {ok,[{Pid,_}]} ->
+ case ct_util:get_connection(Client, ?MODULE) of
+ {ok,{Pid,_}} ->
{ok,Pid};
- {ok,[]} ->
+ {error,no_registered_connection} ->
{error,{no_connection_found,Client}};
- {ok,Conns} ->
- {error,{multiple_connections_found,Client,Conns}};
Error ->
Error
end.