Skip to content

Commit c92ee87

Browse files
Merge pull request #7 from cl-rabbit/double-channel-open-error-fix
channel.open on opened channel should throw channel_error
2 parents 24a3c5e + 1ba6260 commit c92ee87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rabbit_channel.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ handle_method(#'channel.open'{}, _, State = #ch{state = starting}) ->
855855

856856
handle_method(#'channel.open'{}, _, _State) ->
857857
rabbit_misc:protocol_error(
858-
command_invalid, "second 'channel.open' seen", []);
858+
channel_error, "second 'channel.open' seen", []);
859859

860860
handle_method(_Method, _, #ch{state = starting}) ->
861861
rabbit_misc:protocol_error(channel_error, "expected 'channel.open'", []);

0 commit comments

Comments
 (0)