From fed443d1ae6bb78b24de54be5daa9647c5368faa Mon Sep 17 00:00:00 2001 From: Tom Rondeau Date: Fri, 17 Feb 2012 15:40:04 -0500 Subject: core: protection if set_delay is called before the last delay update has finished. --- gnuradio-core/src/lib/general/gr_delay.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnuradio-core/src') diff --git a/gnuradio-core/src/lib/general/gr_delay.cc b/gnuradio-core/src/lib/general/gr_delay.cc index 30c9a235d..aedd461f8 100644 --- a/gnuradio-core/src/lib/general/gr_delay.cc +++ b/gnuradio-core/src/lib/general/gr_delay.cc @@ -63,7 +63,7 @@ gr_delay::set_delay (int d) gruel::scoped_lock l(d_mutex_delay); int old = delay(); set_history(d+1); - d_delta = delay() - old; + d_delta += delay() - old; } } -- cgit