switch to AsyncReceive

This commit is contained in:
orignal 2014-03-29 08:11:00 -04:00
parent 8728aa2840
commit 086b0d5418
2 changed files with 6 additions and 21 deletions

View file

@ -115,7 +115,10 @@ namespace stream
packet->offset = packet->GetPayload () - packet->buf;
if (packet->GetLength () > 0)
{
m_ReceiveQueue.Put (packet);
m_ReceiveTimer.cancel ();
}
else
delete packet;