Skip to content

Commit

Permalink
Use retrieve_by_id
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan Sung <[email protected]>
  • Loading branch information
baegjae committed Dec 17, 2021
1 parent 442d845 commit 5d1c6a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aries_cloudagent/protocols/out_of_band/v1_0/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,9 +500,9 @@ 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
# refetch connection for accurate state after handshake
conn_rec = await ConnRecord.retrieve_by_id(
session=session, record_id=conn_rec.connection_id
)
except asyncio.TimeoutError:
# If no reuse_accepted or problem_report message was received within
Expand Down

0 comments on commit 5d1c6a9

Please sign in to comment.