From 1f4adc9a974fcb792671e4f443b78c6d954aa370 Mon Sep 17 00:00:00 2001 From: Jesse Schell Date: Thu, 16 Nov 2000 02:25:35 +0000 Subject: [PATCH] *** empty log message *** --- direct/src/distributed/ClientRepository.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/direct/src/distributed/ClientRepository.py b/direct/src/distributed/ClientRepository.py index ab8223b443..b806b794c5 100644 --- a/direct/src/distributed/ClientRepository.py +++ b/direct/src/distributed/ClientRepository.py @@ -201,9 +201,14 @@ class ClientRepository(DirectObject.DirectObject): doId = di.getArg(STUint32) # If it is in the dictionaries, remove it. if self.doId2do.has_key(doId): + obj = self.doId2do[doId] + # Remove it from the dictionaries del(self.doId2do[doId]) del(self.doId2cdc[doId]) + # Sanity check the dictionaries assert(len(self.doId2do) == len(self.doId2cdc)) + # Delete the object itself + obj.delete() # If it is in the cache, remove it. elif self.cache.contains(doId): self.cache.delete(doId)