dead lock fixed
This commit is contained in:
+2
-2
@@ -51,9 +51,9 @@ void Statistics::report(const LogEvent& event)
|
||||
}
|
||||
|
||||
m_lastDestinationsMtx.lock();
|
||||
if (not lastDestinations().contains(event.dest))
|
||||
if (not m_lastDestinations.contains(event.dest))
|
||||
{
|
||||
if (lastDestinations().size() >= static_cast<int>(g::p::LAST_AND_TOP_LIST_SIZE))
|
||||
if (m_lastDestinations.size() >= static_cast<int>(g::p::LAST_AND_TOP_LIST_SIZE))
|
||||
{
|
||||
m_lastDestinations.pop_back();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user