From 960722a457ed1c7681a2df066c5d90037ea7b6c3 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 12 Sep 2002 22:06:43 +0000 Subject: [PATCH] quietly ignore deleted objects who call sendUpdate --- direct/src/distributed/ClientRepository.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/direct/src/distributed/ClientRepository.py b/direct/src/distributed/ClientRepository.py index 44db178993..2461f84fdf 100644 --- a/direct/src/distributed/ClientRepository.py +++ b/direct/src/distributed/ClientRepository.py @@ -410,10 +410,10 @@ class ClientRepository(DirectObject.DirectObject): # Get the DO id doId = do.doId # 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): if self.notify.getDebug():