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

use insert instead []

This commit is contained in:
orignal 2015-02-10 16:51:47 -05:00
parent 3263f6fefc
commit 9eba7923a7
2 changed files with 2 additions and 2 deletions

View File

@ -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 }));
});
}

View File

@ -60,7 +60,7 @@ namespace transport
~Peer ()
{
if (session) session->Done ();
//if (session) session->Done ();
for (auto it :delayedMessages)
i2p::DeleteI2NPMessage (it);
}