From bb917a4b2f0fbe3f44a14b9ea5bdbe1105f28408 Mon Sep 17 00:00:00 2001 From: "Asad M. Zaman" Date: Thu, 30 Oct 2003 04:48:57 +0000 Subject: [PATCH] security fixes from 10-29-2003, most of these ar ecrashes --- direct/src/distributed/DistributedSmoothNode.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/direct/src/distributed/DistributedSmoothNode.py b/direct/src/distributed/DistributedSmoothNode.py index b4572a0159..c4a8250d81 100644 --- a/direct/src/distributed/DistributedSmoothNode.py +++ b/direct/src/distributed/DistributedSmoothNode.py @@ -370,7 +370,9 @@ class DistributedSmoothNode(DistributedNode.DistributedNode): if result >= 0 and \ globalClockDelta.getUncertainty() != None: other = self.cr.doId2do.get(avId) - if other and hasattr(other, "d_returnResync"): + if (not other): + self.notify.info("Warning: couldn't find the avatar %d" % (avId)) + elif hasattr(other, "d_returnResync"): realTime = globalClock.getRealTime() serverTime = realTime - globalClockDelta.getDelta() self.notify.info("Returning resync for %s; local time is %s and server time is %s." % (