Skip to content

Commit

Permalink
fix(core): update agent endpoints before adding to registration policy
Browse files Browse the repository at this point in the history
  • Loading branch information
jrriehl authored Nov 15, 2024
1 parent 1b67a4f commit 1d3f481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/src/uagents/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1500,8 +1500,8 @@ def add(self, agent: Agent):
"""
if agent in self._agents:
return
self._registration_policy.add_agent(agent.info, agent._identity)
self._update_agent(agent)
self._registration_policy.add_agent(agent.info, agent._identity)
self._agents.append(agent)

async def _schedule_registration(self):
Expand Down

0 comments on commit 1d3f481

Please sign in to comment.