mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +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{};
|
Common::TraversalInetAddress* iaddr{};
|
||||||
// not that there is any significant change of
|
// not that there is any significant change of
|
||||||
// duplication, but...
|
// duplication, but...
|
||||||
GetRandomHostId(&hostId);
|
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
|
GetRandomHostId(&hostId);
|
||||||
auto r = EvictFind(connectedClients, hostId);
|
auto r = EvictFind(connectedClients, hostId);
|
||||||
if (!r.found)
|
if (!r.found)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue