summaryrefslogtreecommitdiff
path: root/Source/Core/Common/TraversalServer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/Common/TraversalServer.cpp')
-rw-r--r--Source/Core/Common/TraversalServer.cpp2
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)
{