mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
count NACKs in plain ack message size
This commit is contained in:
@@ -320,7 +320,7 @@ namespace stream
|
||||
packets.push_back (p);
|
||||
}
|
||||
if (packets.size () > 0)
|
||||
m_Service.post (std::bind (&Stream::PostPackets, this, packets));
|
||||
m_Service.post (std::bind (&Stream::PostPackets, shared_from_this (), packets));
|
||||
return len;
|
||||
}
|
||||
|
||||
@@ -369,7 +369,7 @@ namespace stream
|
||||
}
|
||||
packet[size] = numNacks;
|
||||
size++; // NACK count
|
||||
packet += numNacks*4; // NACKs
|
||||
size += numNacks*4; // NACKs
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user