]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
stop searching for a server port when one is found
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 29 Jun 2005 23:03:32 +0000 (23:03 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 29 Jun 2005 23:03:32 +0000 (23:03 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5474 d7cf8633-e32d-0410-b094-e92efae38249

netconn.c

index 788b877d3bc2110a32304950a47347da3bf6efb4..c914d0c2a179635a3340d44b0d9ea69fed313719 100755 (executable)
--- a/netconn.c
+++ b/netconn.c
@@ -673,6 +673,7 @@ void NetConn_OpenServerPort(const char *addressstring, int defaultport)
                                sv_sockets[sv_numsockets++] = s;
                                LHNETADDRESS_ToString(LHNET_AddressFromSocket(s), addressstring2, sizeof(addressstring2), true);
                                Con_Printf("Server listening on address %s\n", addressstring2);
+                               break;
                        }
                        else
                        {