Browse Source

cleanup send buffer

pull/816/head
orignal 8 years ago
parent
commit
1ce6ad5ccc
  1. 6
      Streaming.cpp

6
Streaming.cpp

@ -408,12 +408,16 @@ namespace stream @@ -408,12 +408,16 @@ namespace stream
packets.push_back (p);
numMsgs--;
}
if (m_SendBuffer.eof () && m_SendHandler)
if (m_SendBuffer.eof ())
{
m_SendBuffer.str(""); // clean up buffer
if (m_SendHandler)
{
m_SendHandler (boost::system::error_code ());
m_SendHandler = nullptr;
}
}
}
if (packets.size () > 0)
{
if (m_SavedPackets.empty ()) // no NACKS

Loading…
Cancel
Save