mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 21:37:17 +01:00
Fix remaining warnings (fixes #260).
This commit is contained in:
parent
48c66a1d08
commit
ee0d603a81
|
@ -239,8 +239,9 @@ namespace transport
|
|||
try
|
||||
{
|
||||
auto r = netdb.FindRouter (ident);
|
||||
it = m_Peers.insert (std::pair<i2p::data::IdentHash, Peer>(ident, { 0, r, {},
|
||||
i2p::util::GetSecondsSinceEpoch () })).first;
|
||||
it = m_Peers.insert(std::make_pair(
|
||||
ident, Peer{ 0, r, {}, i2p::util::GetSecondsSinceEpoch (), {} }
|
||||
)).first;
|
||||
connected = ConnectToPeer (ident, it->second);
|
||||
}
|
||||
catch (std::exception& ex)
|
||||
|
@ -436,7 +437,9 @@ namespace transport
|
|||
it->second.delayedMessages.clear ();
|
||||
}
|
||||
else // incoming connection
|
||||
m_Peers.insert (std::make_pair (ident, Peer{ 0, nullptr, { session }, i2p::util::GetSecondsSinceEpoch () }));
|
||||
m_Peers.insert(std::make_pair(
|
||||
ident, Peer{ 0, nullptr, { session }, i2p::util::GetSecondsSinceEpoch (), {} }
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue