From cfe562c177bb779a29080e6894b02c5061809c16 Mon Sep 17 00:00:00 2001 From: Emagi Date: Mon, 2 Dec 2024 19:14:17 -0500 Subject: [PATCH] fix primary id --- source/WorldServer/Web/HTTPSClientPool.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/WorldServer/Web/HTTPSClientPool.cpp b/source/WorldServer/Web/HTTPSClientPool.cpp index 2d68564..33347cd 100644 --- a/source/WorldServer/Web/HTTPSClientPool.cpp +++ b/source/WorldServer/Web/HTTPSClientPool.cpp @@ -547,6 +547,9 @@ void HTTPSClientPool::pollPeerHealth(const std::string& server, const std::strin net.SetPrimary(false); } } + else if(!peer_manager.hasPrimary() && peer_primary) { + peer_manager.setPrimary(id); + } switch (curStatus) { case HealthStatus::STARTUP: {