security fixes from 10-29-2003, most of these ar ecrashes

This commit is contained in:
Asad M. Zaman 2003-10-30 04:48:57 +00:00
parent ff162e6b6b
commit bb917a4b2f
1 changed files with 3 additions and 1 deletions

View File

@ -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." % (