fixed sctp write buffer watermark count

This commit is contained in:
Jestan Nirojan 2012-02-10 23:33:59 +05:30
parent a07a7e6e72
commit af943b7502

View File

@ -297,8 +297,8 @@ class SctpChannelImpl extends AbstractChannel implements SctpChannel {
private int getMessageSize(MessageEvent e) {
Object m = e.getMessage();
if (m instanceof ChannelBuffer) {
return ((ChannelBuffer) m).readableBytes();
if (m instanceof SctpPayload) {
return ((SctpPayload) m).getPayloadBuffer().readableBytes();
}
return 0;
}