fixed crash

This commit is contained in:
orignal 2014-08-24 22:32:28 -04:00
parent d231e59f0c
commit ea9aa58471
2 changed files with 8 additions and 13 deletions

View file

@ -148,13 +148,17 @@ namespace tunnel
void TunnelGateway::SendTunnelDataMsg (const TunnelMessageBlock& block)
{
PutTunnelDataMsg (block);
SendBuffer ();
if (block.data)
{
PutTunnelDataMsg (block);
SendBuffer ();
}
}
void TunnelGateway::PutTunnelDataMsg (const TunnelMessageBlock& block)
{
m_Buffer.PutI2NPMsg (block);
if (block.data)
m_Buffer.PutI2NPMsg (block);
}
void TunnelGateway::SendBuffer ()