diff --git a/code/gamespy/gserverlist.c b/code/gamespy/gserverlist.c index 8da63e2b..792ca726 100644 --- a/code/gamespy/gserverlist.c +++ b/code/gamespy/gserverlist.c @@ -184,7 +184,10 @@ GServerList ServerListNew(const char *gamename, const char *enginename, const ch list->encryptdata = 1; list->async = 0; - list->numslsockets = 2; + list->numslsockets = maxconcupdates / 4; + if (list->numslsockets < 1) { + list->numslsockets = 1; + } list->slsockets = (GServerListSocket)malloc(sizeof(struct GServerListSocketImplementation) * list->numslsockets); memset(list->slsockets, 0, sizeof(struct GServerListSocketImplementation) * list->numslsockets); list->startslindex = 0;