From 1456ed1ac747305b07061e47d55a83606bd13c03 Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 2 Dec 2008 21:54:10 +0000 Subject: [PATCH] Actually close sockets. It helps. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3076 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/net_wins.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/engine/common/net_wins.c b/engine/common/net_wins.c index 0c524f292..ec70a54cb 100644 --- a/engine/common/net_wins.c +++ b/engine/common/net_wins.c @@ -1367,6 +1367,14 @@ qboolean FTENET_AddToCollection(ftenet_connections_t *col, char *name, char *add 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); }