diff options
author | Peter Andersson <[email protected]> | 2013-06-04 16:15:29 +0200 |
---|---|---|
committer | Peter Andersson <[email protected]> | 2013-06-04 16:15:29 +0200 |
commit | 9087aeb1fa77bb46ca5364102ed1c9eb37854447 (patch) | |
tree | fc85873dc53da408bd2baba383f395d7081c32d2 /lib/common_test/src/ct_ftp.erl | |
parent | 3855c2e4a72533bda162e94ce4080f9b4e5b1e74 (diff) | |
parent | cf68fec61294194b47063d2368ff916964e8644d (diff) | |
download | otp-9087aeb1fa77bb46ca5364102ed1c9eb37854447.tar.gz otp-9087aeb1fa77bb46ca5364102ed1c9eb37854447.tar.bz2 otp-9087aeb1fa77bb46ca5364102ed1c9eb37854447.zip |
Merge branch 'maint'
Diffstat (limited to 'lib/common_test/src/ct_ftp.erl')
-rw-r--r-- | lib/common_test/src/ct_ftp.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/common_test/src/ct_ftp.erl b/lib/common_test/src/ct_ftp.erl index 8790393b36..b91a521bd4 100644 --- a/lib/common_test/src/ct_ftp.erl +++ b/lib/common_test/src/ct_ftp.erl @@ -348,10 +348,10 @@ terminate(FtpPid,State) -> get_handle(Pid) when is_pid(Pid) -> {ok,Pid}; get_handle(Name) -> - case ct_util:get_connections(Name,?MODULE) of - {ok,[{Pid,_}|_]} -> + case ct_util:get_connection(Name,?MODULE) of + {ok,{Pid,_}} -> {ok,Pid}; - {ok,[]} -> + {error,no_registered_connection} -> open(Name); Error -> Error |