dead lock fixed

This commit is contained in:
acetone
2022-11-21 16:06:40 +03:00
parent a01bbaf540
commit 9eb4a24165
+2 -2
View File
@@ -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();
}