From 031bb0c5183aa7d49cde1dffbd5a916c09b2d274 Mon Sep 17 00:00:00 2001 From: Emagi Date: Mon, 2 Dec 2024 19:37:43 -0500 Subject: [PATCH] Update HTTPSClientPool.cpp --- source/WorldServer/Web/HTTPSClientPool.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/WorldServer/Web/HTTPSClientPool.cpp b/source/WorldServer/Web/HTTPSClientPool.cpp index 9a8090e..ab68d0d 100644 --- a/source/WorldServer/Web/HTTPSClientPool.cpp +++ b/source/WorldServer/Web/HTTPSClientPool.cpp @@ -719,8 +719,9 @@ void HTTPSClientPool::startPolling() { auto server = clientPair.first.first; auto port = clientPair.first.second; LogWrite(PEERING__DEBUG, 5, "Peering", "%s: startPolling for %s:%s.", __FUNCTION__, server.c_str(), port.c_str()); - - std::async(std::launch::async, &HTTPSClientPool::pollPeerHealth, this, server, port); + std::async(std::launch::async, [this, server, port]() { + pollPeerHealth(server, port); + }); } }