From 3eacf1ca4f0497d1b14d3b54538b56525274033a Mon Sep 17 00:00:00 2001 From: Tim Watson Date: Mon, 16 Jul 2012 10:38:31 +0100 Subject: oops - handle heartbeat timeouts properly in closed state --- src/rabbit_reader.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rabbit_reader.erl b/src/rabbit_reader.erl index bd5cf588..518021a4 100644 --- a/src/rabbit_reader.erl +++ b/src/rabbit_reader.erl @@ -311,7 +311,7 @@ handle_other(handshake_timeout, Deb, State) mainloop(Deb, State); handle_other(handshake_timeout, _Deb, State) -> throw({handshake_timeout, State#v1.callback}); -handle_other(timeout, Deb, State = #v1{connection_state = closed}) -> +handle_other(heartbeat_timeout, Deb, State = #v1{connection_state = closed}) -> mainloop(Deb, State); handle_other(heartbeat_timeout, _Deb, #v1{connection_state = S}) -> throw({heartbeat_timeout, S}); -- cgit v1.2.1