signalReceiver modified to block the object if loading is needed and singal the Router

parent a02b953d
......@@ -346,6 +346,24 @@ class CoreObject(Process):
# activeObject.receiver=activeObject.selectReceiver(possibleReceivers)
receiversGiver=activeObject
# activeObject.receiver.giver=activeObject
#------------------------------------------------------------------------------
# if an operator is not assigned to the receiver then do not signal the receiver but the Router
try:
if not receiver.assignedOperator:
from Globals import G
if not G.RoutersList[0].invoked:
#===================================================================
# # TESTING
# print now(), self.id,' '*50, 'signalling router'
#===================================================================
G.RoutersList[0].invoked=True
G.RoutersList[0].isCalled.signal(now())
return False
except:
pass
#------------------------------------------------------------------------------
activeObject.receiver=receiver
activeObject.receiver.giver=activeObject
#===================================================================
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment