Feature: join servers based on their invite code
This removes the need to know a server IP to join it. Invite codes are small (~7 characters) indentifiers for servers, which can be exchanged with other players to join the servers.
This commit is contained in:

committed by
Patric Stout

parent
1baec41542
commit
e4d216e44b
@@ -589,9 +589,13 @@ void NetworkClose(bool close_admins)
|
||||
ServerNetworkAdminSocketHandler::CloseListeners();
|
||||
|
||||
_network_coordinator_client.CloseConnection();
|
||||
} else if (MyClient::my_client != nullptr) {
|
||||
MyClient::SendQuit();
|
||||
MyClient::my_client->CloseConnection(NETWORK_RECV_STATUS_CLIENT_QUIT);
|
||||
} else {
|
||||
if (MyClient::my_client != nullptr) {
|
||||
MyClient::SendQuit();
|
||||
MyClient::my_client->CloseConnection(NETWORK_RECV_STATUS_CLIENT_QUIT);
|
||||
}
|
||||
|
||||
_network_coordinator_client.CloseAllTokens();
|
||||
}
|
||||
|
||||
TCPConnecter::KillAll();
|
||||
|
Reference in New Issue
Block a user