summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/python/gnuradio/blks2impl/pkt.py
diff options
context:
space:
mode:
authorBen Reynwar <ben@reynwar.net>2010-12-03 21:25:47 -0700
committerBen Reynwar <ben@reynwar.net>2010-12-03 21:25:47 -0700
commit26e7851318dfc691fd4412823a392a15bd1c475e (patch)
treea77231e27770a27bc8409c58f396611f7321add8 /gnuradio-core/src/python/gnuradio/blks2impl/pkt.py
parent5ec67cd49bf164117ee9ec7de37d83b1b6b2d76c (diff)
Added a new example python script (a stripped down version of benchmark_loopback.py).
Made minor change to blks2.demod_pkts.
Diffstat (limited to 'gnuradio-core/src/python/gnuradio/blks2impl/pkt.py')
-rw-r--r--gnuradio-core/src/python/gnuradio/blks2impl/pkt.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnuradio-core/src/python/gnuradio/blks2impl/pkt.py b/gnuradio-core/src/python/gnuradio/blks2impl/pkt.py
index 908437ef2b..32109b84f9 100644
--- a/gnuradio-core/src/python/gnuradio/blks2impl/pkt.py
+++ b/gnuradio-core/src/python/gnuradio/blks2impl/pkt.py
@@ -143,7 +143,8 @@ class demod_pkts(gr.hier_block2):
self.framer_sink = gr.framer_sink_1(self._rcvd_pktq)
self.connect(self, self._demodulator, self.correlator, self.framer_sink)
- self._watcher = _queue_watcher_thread(self._rcvd_pktq, callback)
+ if callback is not None:
+ self._watcher = _queue_watcher_thread(self._rcvd_pktq, callback)
class _queue_watcher_thread(_threading.Thread):