mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
pass msgID to HandleDeliveryStatus
This commit is contained in:
parent
5337aa10f7
commit
a335841509
4 changed files with 10 additions and 10 deletions
|
@ -723,9 +723,8 @@ namespace garlic
|
|||
m_DeliveryStatusSessions[msgID] = session;
|
||||
}
|
||||
|
||||
void GarlicDestination::HandleDeliveryStatusMessage (std::shared_ptr<I2NPMessage> msg)
|
||||
void GarlicDestination::HandleDeliveryStatusMessage (uint32_t msgID)
|
||||
{
|
||||
uint32_t msgID = bufbe32toh (msg->GetPayload ());
|
||||
GarlicRoutingSessionPtr session;
|
||||
{
|
||||
std::unique_lock<std::mutex> l(m_DeliveryStatusSessionsMutex);
|
||||
|
@ -757,7 +756,8 @@ namespace garlic
|
|||
|
||||
void GarlicDestination::ProcessDeliveryStatusMessage (std::shared_ptr<I2NPMessage> msg)
|
||||
{
|
||||
HandleDeliveryStatusMessage (msg);
|
||||
uint32_t msgID = bufbe32toh (msg->GetPayload () + DELIVERY_STATUS_MSGID_OFFSET);
|
||||
HandleDeliveryStatusMessage (msgID);
|
||||
}
|
||||
|
||||
void GarlicDestination::SaveTags ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue