Update MessageHeader.h

This commit is contained in:
Aleksandar Fabijanic 2014-03-11 20:31:06 -05:00
parent 1cd745996c
commit d9f92d506d

View File

@ -121,6 +121,7 @@ inline Int32 MessageHeader::getMessageLength() const
inline void MessageHeader::setMessageLength(Int32 length)
{
poco_assert (_messageLength >= 0);
_messageLength = MSG_HEADER_SIZE + length;
}