diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-07-24 03:55:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-24 03:55:45 +0200 |
| commit | 0a2afa48b7bb09fdf3c01c0600359e3f5588df3c (patch) | |
| tree | cc29d37e982fa54bb5ce623a18be28902dcf3be4 /Source/Core/Common/TraversalServer.cpp | |
| parent | 553824e5aa6380cfef77bff6aea454e5422ce48f (diff) | |
| parent | c4978edaf6dbef81903f84ce0b3ef45b270fa926 (diff) | |
Merge pull request #12045 from tupfold/master
[Minor Bugfix] Extremely rare HostID collision bugfix
Diffstat (limited to 'Source/Core/Common/TraversalServer.cpp')
| -rw-r--r-- | Source/Core/Common/TraversalServer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/TraversalServer.cpp b/Source/Core/Common/TraversalServer.cpp index b9b05519fa..a3d28d1bab 100644 --- a/Source/Core/Common/TraversalServer.cpp +++ b/Source/Core/Common/TraversalServer.cpp @@ -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) { |
