summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Klishin <michael@rabbitmq.com>2014-08-11 15:12:27 +0400
committerMichael Klishin <michael@rabbitmq.com>2014-08-11 15:12:27 +0400
commitaee21f852a6de963b54966419e905e23f9055473 (patch)
tree137b3554c055dd1f32d1bad429db3042fc03d9e2
parentb097017b85ee1a111977d4387161a9a1eed2d0d6 (diff)
downloadrabbitmq-server-aee21f852a6de963b54966419e905e23f9055473.tar.gz
Use a catch-all fn head instead
-rw-r--r--src/rabbit_reader.erl4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rabbit_reader.erl b/src/rabbit_reader.erl
index b6afc1d0..06fb52b3 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) ->