Skip to content

Commit

Permalink
Fix parameter order in SctpOutboundByteStreamHandler.
Browse files Browse the repository at this point in the history
Motivation:

The first parameter of SctpMessage is protocolIdentifier, and the second is streamIdentifier. So we need to swap the parameters in encode method

Modification:

Fix order

Result:

SctpOutboundByteStreamHandler works correctly.
  • Loading branch information
YuQi authored and normanmaurer committed May 25, 2017
1 parent 61efd81 commit ca9d165
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ public SctpOutboundByteStreamHandler(int streamIdentifier, int protocolIdentifie

@Override
protected void encode(ChannelHandlerContext ctx, ByteBuf msg, List<Object> out) throws Exception {
out.add(new SctpMessage(streamIdentifier, protocolIdentifier, unordered, msg.retain()));
out.add(new SctpMessage(protocolIdentifier, streamIdentifier, unordered, msg.retain()));
}
}

0 comments on commit ca9d165

Please sign in to comment.