mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-04 14:56:04 +00:00
deprecate ForEachClientWeak in favor of new ForEachClient
This commit is contained in:
@@ -138,7 +138,7 @@ int TClient::SecondsSinceLastPing() {
|
||||
|
||||
std::optional<std::weak_ptr<TClient>> GetClient(TServer& Server, int ID) {
|
||||
std::optional<std::weak_ptr<TClient>> MaybeClient { std::nullopt };
|
||||
Server.ForEachClient([&](std::weak_ptr<TClient> CPtr) -> bool {
|
||||
Server.ForEachClientWeak([&](std::weak_ptr<TClient> CPtr) -> bool {
|
||||
ReadLock Lock(Server.GetClientMutex());
|
||||
try {
|
||||
auto C = CPtr.lock();
|
||||
|
||||
Reference in New Issue
Block a user