Browse Source

use insert instead []

pull/158/head
orignal 10 years ago
parent
commit
9eba7923a7
  1. 2
      Transports.cpp
  2. 2
      Transports.h

2
Transports.cpp

@ -418,7 +418,7 @@ namespace transport @@ -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 }));
});
}

2
Transports.h

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

Loading…
Cancel
Save