Browse Source

remove func ref

Joe Shochet 21 years ago
parent
commit
9bd9b1a99b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      direct/src/distributed/DistributedSmoothNodeBase.py

+ 2 - 0
direct/src/distributed/DistributedSmoothNodeBase.py

@@ -64,6 +64,8 @@ class DistributedSmoothNodeBase:
 
     def stopPosHprBroadcast(self):
         taskMgr.remove(self.getPosHprBroadcastTaskName())
+        # Delete this callback because it maintains a reference to self
+        self.d_broadcastPosHpr = None
 
     def startPosHprBroadcast(self, period=.2, stagger=0, type=None):
         BT = DistributedSmoothNodeBase.BroadcastTypes