deprecate ForEachClientWeak in favor of new ForEachClient

This commit is contained in:
Lion Kortlepel
2022-11-13 12:57:09 +01:00
parent a8ad9034b2
commit d7369c3bc5
9 changed files with 43 additions and 19 deletions

View File

@@ -33,7 +33,7 @@ void TPPSMonitor::operator()() {
Application::SetPPS("-");
continue;
}
mServer.ForEachClient([&](const std::weak_ptr<TClient>& ClientPtr) -> bool {
mServer.ForEachClientWeak([&](const std::weak_ptr<TClient>& ClientPtr) -> bool {
std::shared_ptr<TClient> c;
{
ReadLock Lock(mServer.GetClientMutex());