mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-31 15:32:38 +00:00
Fixed a bug where in the extremely unlikely change that HostIDs collide, a new HostID is generated.
This commit is contained in:
parent
52b4ac1613
commit
52eb84287e
1 changed files with 1 additions and 1 deletions
|
@ -312,9 +312,9 @@ static void HandlePacket(Common::TraversalPacket* packet, sockaddr_in6* addr)
|
|||
Common::TraversalInetAddress* iaddr{};
|
||||
// not that there is any significant change of
|
||||
// duplication, but...
|
||||
GetRandomHostId(&hostId);
|
||||
while (true)
|
||||
{
|
||||
GetRandomHostId(&hostId);
|
||||
auto r = EvictFind(connectedClients, hostId);
|
||||
if (!r.found)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue