stop searching for a server port when one is found
[xonotic/darkplaces.git] / 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
                        {