mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-24 06:04:16 +00:00
schedule cleanup again and add logging
This commit is contained in:
parent
0b21fce94e
commit
35b68db847
@ -138,6 +138,7 @@ namespace datagram
|
|||||||
LogPrint(eLogInfo, "DatagramDestination: expiring idle session with ", ident.ToBase32());
|
LogPrint(eLogInfo, "DatagramDestination: expiring idle session with ", ident.ToBase32());
|
||||||
m_Sessions.erase(ident);
|
m_Sessions.erase(ident);
|
||||||
}
|
}
|
||||||
|
ScheduleCleanup();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::shared_ptr<DatagramSession> DatagramDestination::ObtainSession(const i2p::data::IdentHash & ident)
|
std::shared_ptr<DatagramSession> DatagramDestination::ObtainSession(const i2p::data::IdentHash & ident)
|
||||||
@ -180,6 +181,7 @@ namespace datagram
|
|||||||
auto routingPath = m_RoutingSession->GetSharedRoutingPath();
|
auto routingPath = m_RoutingSession->GetSharedRoutingPath();
|
||||||
if(!routingPath)
|
if(!routingPath)
|
||||||
{
|
{
|
||||||
|
LogPrint(eLogDebug, "DatagramSession: try getting new routing path");
|
||||||
// no routing path, try getting one
|
// no routing path, try getting one
|
||||||
routingPath = GetNextRoutingPath();
|
routingPath = GetNextRoutingPath();
|
||||||
if(routingPath) // remember the routing path if we got one
|
if(routingPath) // remember the routing path if we got one
|
||||||
|
Loading…
x
Reference in New Issue
Block a user