Fix parameter order in SctpOutboundByteStreamHandler.

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.
This commit is contained in:
YuQi 2017-05-24 12:00:08 +08:00 committed by Norman Maurer
parent 61efd81952
commit ca9d1658a0

View File

@ -53,6 +53,6 @@ public class SctpOutboundByteStreamHandler extends MessageToMessageEncoder<ByteB
@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()));
}
}