aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NorthstarDedicatedTest/masterserver.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/NorthstarDedicatedTest/masterserver.cpp b/NorthstarDedicatedTest/masterserver.cpp
index b5b394cc..da017b24 100644
--- a/NorthstarDedicatedTest/masterserver.cpp
+++ b/NorthstarDedicatedTest/masterserver.cpp
@@ -892,18 +892,22 @@ void MasterServerManager::WritePlayerPersistentData(char* playerId, char* pdata,
bool MasterServerManager::RemoveSelfFromServerListThread()
{
+ bool removed = true;
+
// we dont process this at all atm, maybe do later, but atm not necessary
LazyCreateHttpClient();
if (auto result = m_httpClient->Delete(fmt::format("/server/remove_server?id={}", m_ownServerId).c_str()))
{
m_successfullyConnected = true;
+ m_ownServerId[0] = 0;
}
else
{
m_successfullyConnected = false;
+ removed = false;
}
- m_ownServerId[0] = 0;
+ return removed;
}
void MasterServerManager::RemoveSelfFromServerList()