Explorar o código

bug fix, @TODO: Insure that the learner is also an agent, that communicates with actors

steve %!s(int64=8) %!d(string=hai) anos
pai
achega
e1d0925c10
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/utils/agents/actor.py

+ 2 - 0
src/utils/agents/actor.py

@@ -181,6 +181,7 @@ class Orchestrator(Actor):
         message = json.loads(stream)
         if 'content' in message :
             content = message['content']
+	    print self.actors
         
             #sender = message['from']
             to = message['to']
@@ -189,6 +190,7 @@ class Orchestrator(Actor):
                     print '**** closing ',self.getIdentifier()
                     channel.close()
             else:
+
                 id = to.lower()
                 actor = self.actors[id]