mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-23 17:36:37 +02:00
check if sessions list is empty
This commit is contained in:
parent
a4762fe65c
commit
6885761f87
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue