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) { private int getMessageSize(MessageEvent e) {
Object m = e.getMessage(); Object m = e.getMessage();
if (m instanceof ChannelBuffer) { if (m instanceof SctpPayload) {
return ((ChannelBuffer) m).readableBytes(); return ((SctpPayload) m).getPayloadBuffer().readableBytes();
} }
return 0; return 0;
} }