Skip to content

Commit

Permalink
set self.running correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
sveta committed Nov 20, 2024
1 parent 92990dc commit a555ce5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/hyperon/exts/agents/agent_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,14 @@ class BaseListeningAgent(AgentObject):
def __init__(self, path=None, atoms={}, include_paths=None, code=None):
super().__init__(path, atoms, include_paths, code)
self.messages = Queue()
self.running = True
self.running = False
self._output = []
self.lock = threading.RLock()

def start(self, *args):
if not args:
args = ()
self.running = True
st = StreamMethod(self.messages_processor, args)
st.start()

Expand Down

0 comments on commit a555ce5

Please sign in to comment.