diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_reader.erl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rabbit_reader.erl b/src/rabbit_reader.erl index 76d392f996..4bb87f19d5 100644 --- a/src/rabbit_reader.erl +++ b/src/rabbit_reader.erl @@ -357,10 +357,9 @@ mainloop(Deb, State = #v1{parent = Parent, sock= Sock, recv_ref = Ref}) -> throw({handshake_timeout, State#v1.callback}) end; timeout -> - ConnectionState = State#v1.connection_state, - case ConnectionState of + case State#v1.connection_state of closed -> mainloop(Deb, State); - _ -> throw({timeout, ConnectionState}) + S -> throw({timeout, S}) end; {'$gen_call', From, {shutdown, Explanation}} -> {ForceTermination, NewState} = terminate(Explanation, State), |
