Browse Source

check if sessions list is empty

pull/633/head
orignal 8 years ago
parent
commit
6885761f87
  1. 1
      Datagram.cpp

1
Datagram.cpp

@ -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…
Cancel
Save