Browse Source

quietly ignore deleted objects who call sendUpdate

David Rose 23 years ago
parent
commit
960722a457
1 changed files with 4 additions and 4 deletions
  1. 4 4
      direct/src/distributed/ClientRepository.py

+ 4 - 4
direct/src/distributed/ClientRepository.py

@@ -410,10 +410,10 @@ class ClientRepository(DirectObject.DirectObject):
         # Get the DO id
         # Get the DO id
         doId = do.doId
         doId = do.doId
         # Get the cdc
         # Get the cdc
-        assert(self.doId2cdc.has_key(doId))
-        cdc = self.doId2cdc[doId]
-        # Let the cdc finish the job
-        cdc.sendUpdate(self, do, fieldName, args, sendToId)
+        cdc = self.doId2cdc.get(doId, None)
+        if cdc:
+            # Let the cdc finish the job
+            cdc.sendUpdate(self, do, fieldName, args, sendToId)
 
 
     def send(self, datagram):
     def send(self, datagram):
         if self.notify.getDebug():
         if self.notify.getDebug():