diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2010-03-29 16:13:26 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2010-03-29 16:13:26 +0000 |
commit | 227f28e36956f8864071667090018cdbdc9686e7 (patch) | |
tree | d8afdd0bcf44d38583a09c3638aedbd91ad5daa8 /tcpclient.c | |
parent | a4f7c437b828b67da222e971c54e855b4dd67be5 (diff) |
proper handling of remote disconnect
svn path=/trunk/externals/iem/iemnet/; revision=13301
Diffstat (limited to 'tcpclient.c')
-rw-r--r-- | tcpclient.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tcpclient.c b/tcpclient.c index 37434b7..7d2ec74 100644 --- a/tcpclient.c +++ b/tcpclient.c @@ -180,6 +180,9 @@ static void tcpclient_send(t_tcpclient *x, t_symbol *s, int argc, t_atom *argv) SETFLOAT(&output_atom, size); outlet_anything( x->x_statusout, gensym("sent"), 1, &output_atom); + if(size<0) { + tcpclient_disconnect(x); + } } static void tcpclient_receive_callback(void*y, t_iemnet_chunk*c, int argc, t_atom*argv) { |