diff options
| -rw-r--r-- | src/rabbit_reader.erl | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rabbit_reader.erl b/src/rabbit_reader.erl index b6afc1d062..06fb52b37f 100644 --- a/src/rabbit_reader.erl +++ b/src/rabbit_reader.erl @@ -596,9 +596,7 @@ handle_exception(State = #v1{connection = #connection{protocol = Protocol}, State1 = close_connection(terminate_channels(State)), ok = send_on_channel0(State1#v1.sock, CloseMethod, Protocol), State1; -handle_exception(State = #v1{connection_state = starting}, Channel, Reason) -> - fail_handshake_after_delay(State, Channel, Reason); -handle_exception(State = #v1{connection_state = tuning}, Channel, Reason) -> +handle_exception(State, Channel, Reason) -> fail_handshake_after_delay(State, Channel, Reason). fail_handshake_after_delay(State, Channel, Reason) -> |
