aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2016-11-09 12:51:57 +0100
committerHans Nilsson <[email protected]>2016-11-11 13:03:02 +0100
commitd1c8c59ec8bcec6758d7a00bed1d23e0907fb3a5 (patch)
tree30c84d2ce51103a6e194a20669a2a7c7a77579c4
parenta19ef3f11f400f5a79a05d06a5176561cd87cff8 (diff)
downloadotp-d1c8c59ec8bcec6758d7a00bed1d23e0907fb3a5.tar.gz
otp-d1c8c59ec8bcec6758d7a00bed1d23e0907fb3a5.tar.bz2
otp-d1c8c59ec8bcec6758d7a00bed1d23e0907fb3a5.zip
ssh: Change order on next_event actions in ssh_connection_handler
-rw-r--r--lib/ssh/src/ssh_connection_handler.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ssh/src/ssh_connection_handler.erl b/lib/ssh/src/ssh_connection_handler.erl
index dd414894d4..e7c52f345e 100644
--- a/lib/ssh/src/ssh_connection_handler.erl
+++ b/lib/ssh/src/ssh_connection_handler.erl
@@ -1194,12 +1194,12 @@ handle_event(info, {Proto, Sock, NewData}, StateName, D0 = #data{socket = Sock,
ssh_message:decode(set_kex_overload_prefix(DecryptedBytes,D))
of
Msg = #ssh_msg_kexinit{} ->
- {keep_state, D, [{next_event, internal, {Msg,DecryptedBytes}},
- {next_event, internal, prepare_next_packet}
+ {keep_state, D, [{next_event, internal, prepare_next_packet},
+ {next_event, internal, {Msg,DecryptedBytes}}
]};
Msg ->
- {keep_state, D, [{next_event, internal, Msg},
- {next_event, internal, prepare_next_packet}
+ {keep_state, D, [{next_event, internal, prepare_next_packet},
+ {next_event, internal, Msg}
]}
catch
_C:_E ->