mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
switch to AsyncReceive
This commit is contained in:
parent
8728aa2840
commit
086b0d5418
2 changed files with 6 additions and 21 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue