From 442d845020c5648305ed5043873446f84ef8e47f Mon Sep 17 00:00:00 2001 From: Ethan Sung Date: Fri, 17 Dec 2021 15:48:06 +0900 Subject: [PATCH] Fetch connection record after reuse handshake Signed-off-by: Ethan Sung --- aries_cloudagent/protocols/out_of_band/v1_0/manager.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aries_cloudagent/protocols/out_of_band/v1_0/manager.py b/aries_cloudagent/protocols/out_of_band/v1_0/manager.py index 1c61cdedd0..8eaf6ba190 100644 --- a/aries_cloudagent/protocols/out_of_band/v1_0/manager.py +++ b/aries_cloudagent/protocols/out_of_band/v1_0/manager.py @@ -500,6 +500,10 @@ async def receive_invitation( await conn_rec.metadata_delete( session=session, key="reuse_msg_state" ) + # fetch connection record after handshake + conn_rec = await ConnRecord.find_existing_connection( + session=session, their_public_did=public_did + ) except asyncio.TimeoutError: # If no reuse_accepted or problem_report message was received within # the 15s timeout then a new connection to be created