fix minor cmake issue

This commit is contained in:
Eduardo Bart
2012-06-22 13:02:16 -03:00
parent 170236f822
commit 0c14a8e602
2 changed files with 4 additions and 8 deletions

View File

@@ -32,6 +32,7 @@ Protocol::Protocol()
Protocol::~Protocol()
{
assert(!g_app.isTermianted());
disconnect();
}
@@ -80,6 +81,9 @@ void Protocol::send(const OutputMessagePtr& outputMessage)
// send
if(m_connection)
m_connection->write(outputMessage->getHeaderBuffer(), outputMessage->getMessageSize());
// reset message to allow reuse
outputMessage->reset();
}
void Protocol::recv()