commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 03/09: runtime: possible bug fix for limite


From: git
Subject: [Commit-gnuradio] [gnuradio] 03/09: runtime: possible bug fix for limited-run flowgraphs with message-only blocks.
Date: Wed, 4 Feb 2015 21:59:34 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch master
in repository gnuradio.

commit 035b9d016dffefec890323bd0b24dbaf23aa9186
Author: Tom Rondeau <address@hidden>
Date:   Wed Feb 4 13:06:14 2015 +0000

    runtime: possible bug fix for limited-run flowgraphs with message-only 
blocks.
---
 gnuradio-runtime/lib/block.cc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gnuradio-runtime/lib/block.cc b/gnuradio-runtime/lib/block.cc
index 9173094..f26d6bb 100644
--- a/gnuradio-runtime/lib/block.cc
+++ b/gnuradio-runtime/lib/block.cc
@@ -750,7 +750,10 @@ namespace gr {
   bool
   block::finished()
   {
-    return d_finished;
+    if((detail()->ninputs() != 0) || (detail()->noutputs() != 0))
+      return false;
+    else
+      return d_finished;
   }
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]