Skip to content

Commit

Permalink
Fix wrong assert when browsing lan network for joining game
Browse files Browse the repository at this point in the history
  • Loading branch information
Kolfering committed Sep 13, 2024
1 parent 669ae96 commit 78122c4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Source_Files/Network/network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2798,12 +2798,11 @@ short NetUpdateJoinState(
}
else if (server_nbc->status() == NonblockingConnect::ConnectFailed)
{
assert(host_address_specified);
if (nbc_is_resolving)
host_address = server_nbc->address();
nbc_is_resolving = false;
ConnectPool::instance()->abandon(server_nbc);
server_nbc = ConnectPool::instance()->connect(host_address);
server_nbc = host_address_specified ? ConnectPool::instance()->connect(host_address) : nullptr;
}
}

Expand Down

0 comments on commit 78122c4

Please sign in to comment.