diff options
author | Peter Andersson <[email protected]> | 2013-05-29 01:03:05 +0200 |
---|---|---|
committer | Peter Andersson <[email protected]> | 2013-05-29 10:06:25 +0200 |
commit | 7d77cc5a9e61fbe39f0574014926064723523efa (patch) | |
tree | 4a751fd8a8d22f075607c1c8ddb8e3b5e4739e43 /lib/common_test/src/ct_ssh.erl | |
parent | 3f6185714ee9b383d9ba330e02b73017bf68babc (diff) | |
download | otp-7d77cc5a9e61fbe39f0574014926064723523efa.tar.gz otp-7d77cc5a9e61fbe39f0574014926064723523efa.tar.bz2 otp-7d77cc5a9e61fbe39f0574014926064723523efa.zip |
Fix faulty connection handling
OTP-10126
Diffstat (limited to 'lib/common_test/src/ct_ssh.erl')
-rw-r--r-- | lib/common_test/src/ct_ssh.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/common_test/src/ct_ssh.erl b/lib/common_test/src/ct_ssh.erl index c6ea27b10e..1adc79d358 100644 --- a/lib/common_test/src/ct_ssh.erl +++ b/lib/common_test/src/ct_ssh.erl @@ -1328,10 +1328,10 @@ do_recv_response(SSH, Chn, Data, End, Timeout) -> get_handle(SSH) when is_pid(SSH) -> {ok,SSH}; get_handle(SSH) -> - case ct_util:get_connections(SSH, ?MODULE) of - {ok,[{Pid,_}]} -> + case ct_util:get_connection(SSH, ?MODULE) of + {ok,{Pid,_}} -> {ok,Pid}; - {ok,[]} -> + {error,no_registered_connection} -> connect(SSH); Error -> Error |