summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/python
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2013-03-07 14:24:52 -0500
committerTom Rondeau <trondeau@vt.edu>2013-03-07 14:24:52 -0500
commit7ebec8cc4b5e3a9eb480e3f954f9425d92e73a18 (patch)
treeb75f2d7d5f14d64eacf755d6dfabe1b2319043c2 /gnuradio-core/src/python
parent54a4df9513ea681a8b376c4df3f4f846f92201c1 (diff)
core: protect against popping a message off the queue if no handler is attached.
This mostly solves a problem with threads being launched in random order, so a handler might not be established yet, even if there is a message waiting. Fixes Issue #514.
Diffstat (limited to 'gnuradio-core/src/python')
-rwxr-xr-xgnuradio-core/src/python/gnuradio/gr/qa_pdu.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_pdu.py b/gnuradio-core/src/python/gnuradio/gr/qa_pdu.py
index c1110c10bd..098aabb4a2 100755
--- a/gnuradio-core/src/python/gnuradio/gr/qa_pdu.py
+++ b/gnuradio-core/src/python/gnuradio/gr/qa_pdu.py
@@ -63,7 +63,6 @@ class test_pdu(gr_unittest.TestCase):
#pmt.pmt_print(pi)
#print "Stream to PDU output ports: "
#pmt.pmt_print(po)
- time.sleep(0.1)
self.tb.connect(src, snk)
self.tb.connect(src, snk2)
@@ -84,7 +83,7 @@ class test_pdu(gr_unittest.TestCase):
src.to_basic_block()._post( port, msg )
while(dbg.num_messages() < 1):
- time.sleep(0.5)
+ time.sleep(0.1)
self.tb.stop()
self.tb.wait()