mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 06:51:17 +01:00
Merge pull request #12045 from tupfold/master
[Minor Bugfix] Extremely rare HostID collision bugfix
This commit is contained in:
commit
0a2afa48b7
@ -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…
x
Reference in New Issue
Block a user