From 1e7822225f2da4bd43526db0ea54ae76af30846a Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 22 Aug 2013 02:28:39 +0500 Subject: [PATCH] FS-5296 --- libs/stfu/stfu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/stfu/stfu.c b/libs/stfu/stfu.c index 5ab14a31d6..8f09145e71 100644 --- a/libs/stfu/stfu.c +++ b/libs/stfu/stfu.c @@ -447,6 +447,10 @@ stfu_status_t stfu_n_add_data(stfu_instance_t *i, uint32_t ts, uint16_t seq, uin if (i->max_drift) { + if (i->drift_dropped_packets > 500) { + stfu_n_reset(i); + } + if (i->ts_drift < i->max_drift) { if (++i->drift_dropped_packets < i->drift_max_dropped) { stfu_log(STFU_LOG_EMERG, "%s TOO LATE !!! %u \n\n\n", i->name, ts);