schedule routing session cleanup

This commit is contained in:
orignal 2015-01-23 12:48:25 -05:00
parent a25646a129
commit 24c00b0985
3 changed files with 23 additions and 2 deletions

View file

@ -538,7 +538,10 @@ namespace garlic
for (auto it = m_Sessions.begin (); it != m_Sessions.end ();)
{
if (!it->second->CleanupExpiredTags ())
{
LogPrint (eLogInfo, "Routing session to ", it->first.ToBase32 (), " deleted");
it = m_Sessions.erase (it);
}
else
it++;
}