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); + }); } }