Fix reconnect command

This fixes #160
This commit is contained in:
Maurice Heumann 2023-03-06 18:42:52 +01:00
parent 551bfdea50
commit 39bb77b780

View File

@ -182,6 +182,8 @@ namespace party
} }
void connect_stub(const char* address) void connect_stub(const char* address)
{
if (address)
{ {
const auto target = network::address_from_string(address); const auto target = network::address_from_string(address);
if (target.type == game::NA_BAD) if (target.type == game::NA_BAD)
@ -190,7 +192,9 @@ namespace party
} }
connect_host = target; connect_host = target;
query_server(target, handle_connect_query_response); }
query_server(connect_host, handle_connect_query_response);
} }
void send_server_query(server_query& query) void send_server_query(server_query& query)