浏览代码

UNDO temp hacks

Redmond Urbino 17 年之前
父节点
当前提交
123ec119f5
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3 4
      direct/src/distributed/DistributedObject.py

+ 3 - 4
direct/src/distributed/DistributedObject.py

@@ -249,10 +249,9 @@ class DistributedObject(DistributedObjectBase):
         # after this is called, the object is no longer an active DistributedObject
         # and it may be placed in the cache
         self.__callbacks = {}
-        if self.cr:
-            self.cr.closeAutoInterests(self)
-            self.setLocation(0,0)
-            self.cr.deleteObjectLocation(self, self.parentId, self.zoneId)
+        self.cr.closeAutoInterests(self)
+        self.setLocation(0,0)
+        self.cr.deleteObjectLocation(self, self.parentId, self.zoneId)
 
     def _destroyDO(self):
         # after this is called, the object is no longer a DistributedObject