summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2013-06-13 01:33:28 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2013-06-13 19:54:35 -0700
commitc7848a1aa3748ef62d3d4faf7f58736f0ee9a0cb (patch)
tree20c6dd8b6468b7a6d5f3440ff2de2967f302489f
parentc8c2fe543aeed38059a45bfaa53990978577eea8 (diff)
digital: a block should not hold a reference to itself
-rw-r--r--[-rwxr-xr-x]gr-digital/python/qa_constellation.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gr-digital/python/qa_constellation.py b/gr-digital/python/qa_constellation.py
index ddd8c71e64..358985e8e5 100755..100644
--- a/gr-digital/python/qa_constellation.py
+++ b/gr-digital/python/qa_constellation.py
@@ -197,7 +197,8 @@ class mod_demod(gr.hier_block2):
# TX
self.constellation = constellation
self.differential = differential
- self.blocks = [self]
+ import weakref
+ self.blocks = [weakref.proxy(self)]
# We expect a stream of unpacked bits.
# First step is to pack them.
self.blocks.append(
@@ -238,7 +239,7 @@ class mod_demod(gr.hier_block2):
# connect to block output
check_index = len(self.blocks)
self.blocks = self.blocks[:check_index]
- self.blocks.append(self)
+ self.blocks.append(weakref.proxy(self))
self.connect(*self.blocks)