Skip to content

Commit

Permalink
Merge pull request #1564 from baegjae/fetch-conn-record
Browse files Browse the repository at this point in the history
Fix the inconsistency of invitation_msg_id between invitation and response
  • Loading branch information
ianco committed Dec 20, 2021
2 parents bdd625b + 8233fef commit be0f462
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aries_cloudagent/protocols/out_of_band/v1_0/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,10 @@ async def receive_invitation(
await conn_rec.metadata_delete(
session=session, key="reuse_msg_state"
)
# 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
# the 15s timeout then a new connection to be created
Expand Down

0 comments on commit be0f462

Please sign in to comment.