mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
doneBarrier() may be legally be called with no barrier received
This commit is contained in:
parent
ebc8e02136
commit
ac53a4e660
@ -304,8 +304,13 @@ class DistributedObject(PandaObject):
|
|||||||
|
|
||||||
def doneBarrier(self):
|
def doneBarrier(self):
|
||||||
# Tells the AI we have finished handling our task.
|
# Tells the AI we have finished handling our task.
|
||||||
assert(self.__barrierContext != None)
|
|
||||||
self.sendUpdate("doBarrierReady", [self.__barrierContext])
|
# If this is None, it either means we have called
|
||||||
self.__barrierContext = None
|
# 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