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 788b877..c914d0c 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
                        {