1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-22 04:04:16 +00:00

count NACKs in plain ack message size

This commit is contained in:
orignal 2014-11-29 19:15:41 -05:00
parent 95027930f2
commit 5e83d950f5

View File

@ -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
{