aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorMartin Peach <mrpeach@users.sourceforge.net>2007-07-23 16:48:29 +0000
committerMartin Peach <mrpeach@users.sourceforge.net>2007-07-23 16:48:29 +0000
commit34ffd2b68b20f69677ff07cff7798560b123c181 (patch)
tree6cc22f9575e5039fd5891676c5b0554870da2428 /net
parentb05f8113fc20bfd28478fd43d9208a6b3d0e81b3 (diff)
Removed unused static binbuf that caused occasional crashes when reinstantiating the object. Thanks IOhannes
for pointing it out! svn path=/trunk/externals/mrpeach/; revision=8211
Diffstat (limited to 'net')
-rwxr-xr-xnet/tcpserver.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/tcpserver.c b/net/tcpserver.c
index 4b9df11..cf03092 100755
--- a/net/tcpserver.c
+++ b/net/tcpserver.c
@@ -62,7 +62,6 @@
/* ----------------------------- tcpserver ------------------------- */
static t_class *tcpserver_class;
-static t_binbuf *inbinbuf;
static char objName[] = "tcpserver";
typedef void (*t_tcpserver_socketnotifier)(void *x);
@@ -587,7 +586,6 @@ static void *tcpserver_new(t_floatarg fportno)
x->x_connectout = outlet_new(&x->x_obj, &s_float); /* 2nd outlet for number of connected clients */
x->x_sockout = outlet_new(&x->x_obj, &s_float); /* 3rd outlet for socket number of current client */
x->x_addrout = outlet_new(&x->x_obj, &s_list); /* 4th outlet for ip address of current client */
- inbinbuf = binbuf_new();
}
x->x_connectsocket = sockfd;
x->x_nconnections = 0;
@@ -630,7 +628,6 @@ static void tcpserver_free(t_tcpserver *x)
sys_closesocket(x->x_connectsocket);
}
- binbuf_free(inbinbuf);
}
void tcpserver_setup(void)