mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
doneBarrier() may be legally be called with no barrier received
This commit is contained in:
parent
ebc8e02136
commit
ac53a4e660
@ -304,7 +304,12 @@ class DistributedObject(PandaObject):
|
||||
|
||||
def doneBarrier(self):
|
||||
# Tells the AI we have finished handling our task.
|
||||
assert(self.__barrierContext != None)
|
||||
|
||||
# If this is None, it either means we have called
|
||||
# doneBarrier() twice, or we have not received a barrier
|
||||
# context from the AI. I think in either case it's ok to
|
||||
# silently ignore the error.
|
||||
if self.__barrierContext != None:
|
||||
self.sendUpdate("doBarrierReady", [self.__barrierContext])
|
||||
self.__barrierContext = None
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user