diff options
Diffstat (limited to 'gr-digital')
-rw-r--r--[-rwxr-xr-x] | gr-digital/python/qa_constellation.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gr-digital/python/qa_constellation.py b/gr-digital/python/qa_constellation.py index 6962ec633..95942933a 100755..100644 --- a/gr-digital/python/qa_constellation.py +++ b/gr-digital/python/qa_constellation.py @@ -158,7 +158,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( @@ -199,7 +200,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) |