X-Git-Url: http://git.sameswireless.fr/l2tpns.git/blobdiff_plain/8261bf2370dfb456c83a1a905e3bdf2b9d89580b..30b64bb9f99720d8886057caeb519f2524f1b4cf:/cluster.c diff --git a/cluster.c b/cluster.c index abf5062..e3e7f01 100644 --- a/cluster.c +++ b/cluster.c @@ -1,6 +1,6 @@ // L2TPNS Clustering Stuff -char const *cvs_id_cluster = "$Id: cluster.c,v 1.26.2.4 2005/04/01 08:54:12 bodea Exp $"; +char const *cvs_id_cluster = "$Id: cluster.c,v 1.26.2.5 2005/05/02 09:03:27 bodea Exp $"; #include #include @@ -1031,7 +1031,9 @@ static int cluster_handle_bytes(char *data, int size) session[b->sid].cin += b->in; session[b->sid].cout += b->out; - session[b->sid].last_packet = time_now; // Reset idle timer! + + if (b->in) + session[b->sid].last_packet = time_now; // Reset idle timer! size -= sizeof(*b); ++b;