summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnders Svensson <anders@erlang.org>2019-05-29 14:03:33 +0200
committerAnders Svensson <anders@erlang.org>2019-06-05 17:09:22 +0200
commit4e4851e5dabe1896bd81af86bd3df6d081ca8b7e (patch)
tree17b8cc72b07cb2ac79bde20ffd38b7128abc8118
parent56e6e65bcee5b63daced7f22e761fb7cb8c1e0d4 (diff)
downloaderlang-4e4851e5dabe1896bd81af86bd3df6d081ca8b7e.tar.gz
Fix inaccurate comment
-rw-r--r--lib/common_test/src/ct_netconfc.erl7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/common_test/src/ct_netconfc.erl b/lib/common_test/src/ct_netconfc.erl
index a9d6fe600a..a13a8ff0c9 100644
--- a/lib/common_test/src/ct_netconfc.erl
+++ b/lib/common_test/src/ct_netconfc.erl
@@ -985,9 +985,10 @@ handle_msg(get_ssh_connection, _From, #state{connection=Connection}=State) ->
end,
{reply, Reply, State};
-handle_msg(_, _From, #state{session_id=undefined} = State) ->
- %% Hello is not yet excanged - this shall never happen
- {reply,{error,waiting_for_hello},State};
+%% Request before server hello. Possible with only_open, since a
+%% handle is then returned without waiting for the server.
+handle_msg(_, _From, #state{session_id = undefined} = State) ->
+ {reply, {error, waiting_for_hello}, State};
handle_msg(get_capabilities, _From, #state{capabilities = Caps} = State) ->
{reply, Caps, State};