diff options
author | HappyDOGE <28511119+HappyDOGE@users.noreply.github.com> | 2021-12-28 12:27:28 +0300 |
---|---|---|
committer | HappyDOGE <28511119+HappyDOGE@users.noreply.github.com> | 2021-12-28 12:27:28 +0300 |
commit | 010a6e1399d09faf1eac21b57efd55c736b11608 (patch) | |
tree | 1d2b371af79bebf11390a0ca911c2637b1c7ac4d /NorthstarDedicatedTest/masterserver.cpp | |
parent | df49442053ac0a910349489d0ff79c7bb3af1db3 (diff) | |
download | NorthstarLauncher-010a6e1399d09faf1eac21b57efd55c736b11608.tar.gz NorthstarLauncher-010a6e1399d09faf1eac21b57efd55c736b11608.zip |
fix build error in masterserver.cpp
Diffstat (limited to 'NorthstarDedicatedTest/masterserver.cpp')
-rw-r--r-- | NorthstarDedicatedTest/masterserver.cpp | 6 |
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() |