mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-11-22 15:58:03 +00:00
reset from before saving packet
This commit is contained in:
1 parent
67714be7ef
commit
bbfd34856f
1 file changed
+2
-1
@@ -405,7 +405,8 @@ namespace stream
|
||||
|
||||
void Stream::SavePacket (Packet * packet)
|
||||
{
|
||||
if (!m_SavedPackets.insert (packet).second)
|
||||
packet->from = nullptr;
|
||||
if (!m_SavedPackets.emplace (packet).second)
|
||||
m_LocalDestination.DeletePacket (packet);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user