mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 08:00:38 +03:00
check if sessions list is empty
This commit is contained in:
parent
a4762fe65c
commit
6885761f87
@ -118,6 +118,7 @@ namespace datagram
|
|||||||
|
|
||||||
void DatagramDestination::CleanUp ()
|
void DatagramDestination::CleanUp ()
|
||||||
{
|
{
|
||||||
|
if (m_Sessions.empty ()) return;
|
||||||
auto now = i2p::util::GetMillisecondsSinceEpoch();
|
auto now = i2p::util::GetMillisecondsSinceEpoch();
|
||||||
LogPrint(eLogDebug, "DatagramDestination: clean up sessions");
|
LogPrint(eLogDebug, "DatagramDestination: clean up sessions");
|
||||||
std::lock_guard<std::mutex> lock(m_SessionsMutex);
|
std::lock_guard<std::mutex> lock(m_SessionsMutex);
|
||||||
|
Loading…
Reference in New Issue
Block a user