Skip to content

Commit

Permalink
rename conflict method name
Browse files Browse the repository at this point in the history
  • Loading branch information
rodolfomiranda committed Oct 2, 2024
1 parent f1cb9cd commit 8abb5be
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/keria/app/agenting.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,11 @@ def delete(self, agent):

del self.agents[agent.caid]

def close(self, agent):
def shut(self, agent):
logger.info(f"closing idle agent {agent.caid}")
agent.remove(agent.doers)
self.remove([agent])
del self.agents[agent.caid]
agent.hby.ks.close(clear=False)
agent.seeker.close(clear=False)
agent.exnseeker.close(clear=False)
Expand All @@ -238,9 +242,6 @@ def close(self, agent):
agent.registrar.rgy.close()
agent.mgr.rb.close(clear=False)
agent.hby.close(clear=False)
self.remove(agent.doers)
self.remove([agent])
del self.agents[agent.caid]

def get(self, caid):
if caid in self.agents:
Expand Down Expand Up @@ -804,7 +805,7 @@ def recur(self, tyme=None):
idle.append(caid)

for caid in idle:
self.agency.close(self.agents[caid])
self.agency.shut(self.agents[caid])
yield self.tock

def loadEnds(app):
Expand Down

0 comments on commit 8abb5be

Please sign in to comment.