diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2013-01-24 15:24:29 +0000 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2013-01-24 15:24:29 +0000 |
commit | 2ccd559e8375654e9a8f8ed6acfc2490ca88de9d (patch) | |
tree | d7bac37c9d6796f79210671508d6cd6549e6a4ea | |
parent | c7dc2628420bd37e9376d150f67d245bf1c38e07 (diff) | |
parent | ec6fe12865e04cb44afca477bfd441268c497378 (diff) | |
download | rabbitmq-server-2ccd559e8375654e9a8f8ed6acfc2490ca88de9d.tar.gz |
merge bug25412 into stable
-rw-r--r-- | src/rabbit_channel.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rabbit_channel.erl b/src/rabbit_channel.erl index 84753f38..a715b291 100644 --- a/src/rabbit_channel.erl +++ b/src/rabbit_channel.erl @@ -587,8 +587,10 @@ handle_method(_Method, _, #ch{state = starting}) -> handle_method(#'channel.close_ok'{}, _, #ch{state = closing}) -> stop; -handle_method(#'channel.close'{}, _, State = #ch{state = closing}) -> - {reply, #'channel.close_ok'{}, State}; +handle_method(#'channel.close'{}, _, State = #ch{writer_pid = WriterPid, + state = closing}) -> + ok = rabbit_writer:send_command(WriterPid, #'channel.close_ok'{}), + {noreply, State}; handle_method(_Method, _, State = #ch{state = closing}) -> {noreply, State}; |