mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
fixed few small issues
This commit is contained in:
parent
b02b88627b
commit
991a80428d
4 changed files with 12 additions and 10 deletions
|
@ -24,7 +24,9 @@ namespace stream
|
|||
{
|
||||
const uint8_t * end = buf + len;
|
||||
buf += 4; // sendStreamID
|
||||
buf += 4; // receiveStreamID
|
||||
if (!m_SendStreamID)
|
||||
m_SendStreamID = be32toh (*(uint32_t *)buf);
|
||||
buf += 4; // receiveStreamID
|
||||
buf += 4; // sequenceNum
|
||||
buf += 4; // ackThrough
|
||||
int nackCount = buf[0];
|
||||
|
@ -150,10 +152,10 @@ namespace stream
|
|||
|
||||
I2NPMessage * StreamingDestination::GetLeaseSet ()
|
||||
{
|
||||
if (!m_LeaseSet)
|
||||
m_LeaseSet = CreateLeaseSet ();
|
||||
else
|
||||
FillI2NPMessageHeader (m_LeaseSet, eI2NPDatabaseStore); // refresh msgID
|
||||
if (m_LeaseSet) // temporary always create new LeaseSet
|
||||
DeleteI2NPMessage (m_LeaseSet);
|
||||
m_LeaseSet = CreateLeaseSet ();
|
||||
|
||||
return m_LeaseSet;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue