mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 04:04:16 +00:00
use insert instead []
This commit is contained in:
parent
3263f6fefc
commit
9eba7923a7
@ -418,7 +418,7 @@ namespace transport
|
||||
}
|
||||
}
|
||||
else // incoming connection
|
||||
m_Peers[ident] = { 0, nullptr, session };
|
||||
m_Peers.insert (std::make_pair (ident, Peer{ 0, nullptr, session }));
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -60,7 +60,7 @@ namespace transport
|
||||
|
||||
~Peer ()
|
||||
{
|
||||
if (session) session->Done ();
|
||||
//if (session) session->Done ();
|
||||
for (auto it :delayedMessages)
|
||||
i2p::DeleteI2NPMessage (it);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user