check if sessions list is empty

This commit is contained in:
orignal 2016-09-08 10:56:22 -04:00
parent a4762fe65c
commit 6885761f87

View File

@ -118,6 +118,7 @@ namespace datagram
void DatagramDestination::CleanUp ()
{
if (m_Sessions.empty ()) return;
auto now = i2p::util::GetMillisecondsSinceEpoch();
LogPrint(eLogDebug, "DatagramDestination: clean up sessions");
std::lock_guard<std::mutex> lock(m_SessionsMutex);