mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
Actually close sockets. It helps.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3076 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
41da9e4655
commit
1456ed1ac7
1 changed files with 8 additions and 0 deletions
|
@ -1367,6 +1367,14 @@ qboolean FTENET_AddToCollection(ftenet_connections_t *col, char *name, char *add
|
||||||
|
|
||||||
void FTENET_CloseCollection(ftenet_connections_t *col)
|
void FTENET_CloseCollection(ftenet_connections_t *col)
|
||||||
{
|
{
|
||||||
|
int i;
|
||||||
|
for (i = 0; i < MAX_CONNECTIONS; i++)
|
||||||
|
{
|
||||||
|
if (col->conn[i])
|
||||||
|
{
|
||||||
|
col->conn[i]->Close(col->conn[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
Z_Free(col);
|
Z_Free(col);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue