Skip to content

Commit

Permalink
🐛 Rearrange connection record deletion after hangup
Browse files Browse the repository at this point in the history
Signed-off-by: ff137 <[email protected]>
  • Loading branch information
ff137 committed Oct 24, 2024
1 parent d7511ce commit 7d0af5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions acapy_agent/protocols/did_rotate/v1_0/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ async def hangup(self, conn: ConnRecord) -> Hangup:

hangup = Hangup()

async with self.profile.session() as session:
await conn.delete_record(session)

responder = self.profile.inject(BaseResponder)
await responder.send(hangup, connection_id=conn.connection_id)

async with self.profile.session() as session:
await conn.delete_record(session)

return hangup

async def rotate_my_did(self, conn: ConnRecord, new_did: str) -> Rotate:
Expand Down

0 comments on commit 7d0af5e

Please sign in to comment.