diff --git a/acapy_agent/protocols/did_rotate/v1_0/manager.py b/acapy_agent/protocols/did_rotate/v1_0/manager.py index 6e7ab54b79..8c5e508e06 100644 --- a/acapy_agent/protocols/did_rotate/v1_0/manager.py +++ b/acapy_agent/protocols/did_rotate/v1_0/manager.py @@ -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: