summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_reader.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rabbit_reader.erl b/src/rabbit_reader.erl
index bd5cf58845..7972141ccb 100644
--- a/src/rabbit_reader.erl
+++ b/src/rabbit_reader.erl
@@ -938,8 +938,7 @@ send_exception(State = #v1{connection = #connection{protocol = Protocol}},
rabbit_binary_generator:map_exception(Channel, Reason, Protocol),
terminate_channels(),
State1 = close_connection(State),
- ok = rabbit_writer:internal_send_command(
- State1#v1.sock, 0, CloseMethod, Protocol),
+ ok = send_on_channel0(State1#v1.sock, CloseMethod, Protocol),
State1.
emit_stats(State) ->