瀏覽代碼

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

Asad M. Zaman 22 年之前
父節點
當前提交
bb917a4b2f
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      direct/src/distributed/DistributedSmoothNode.py

+ 3 - 1
direct/src/distributed/DistributedSmoothNode.py

@@ -370,7 +370,9 @@ class DistributedSmoothNode(DistributedNode.DistributedNode):
         if result >= 0 and \
         if result >= 0 and \
            globalClockDelta.getUncertainty() != None:
            globalClockDelta.getUncertainty() != None:
             other = self.cr.doId2do.get(avId)
             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()
                 realTime = globalClock.getRealTime()
                 serverTime = realTime - globalClockDelta.getDelta()
                 serverTime = realTime - globalClockDelta.getDelta()
                 self.notify.info("Returning resync for %s; local time is %s and server time is %s." % (
                 self.notify.info("Returning resync for %s; local time is %s and server time is %s." % (