mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-23 17:36:37 +02:00
count NACKs in plain ack message size
This commit is contained in:
parent
95027930f2
commit
5e83d950f5
1 changed files with 2 additions and 2 deletions
|
@ -320,7 +320,7 @@ namespace stream
|
||||||
packets.push_back (p);
|
packets.push_back (p);
|
||||||
}
|
}
|
||||||
if (packets.size () > 0)
|
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;
|
return len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -369,7 +369,7 @@ namespace stream
|
||||||
}
|
}
|
||||||
packet[size] = numNacks;
|
packet[size] = numNacks;
|
||||||
size++; // NACK count
|
size++; // NACK count
|
||||||
packet += numNacks*4; // NACKs
|
size += numNacks*4; // NACKs
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue