mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
crypto/verification: add missing lock in AcceptVerification method
Some checks failed
Some checks failed
This commit is contained in:
parent
de171e38d5
commit
33f3ccd6ae
1 changed files with 3 additions and 0 deletions
|
|
@ -378,6 +378,9 @@ func (vh *VerificationHelper) StartInRoomVerification(ctx context.Context, roomI
|
|||
// be the transaction ID of a verification request that was received via the
|
||||
// VerificationRequested callback in [RequiredCallbacks].
|
||||
func (vh *VerificationHelper) AcceptVerification(ctx context.Context, txnID id.VerificationTransactionID) error {
|
||||
vh.activeTransactionsLock.Lock()
|
||||
defer vh.activeTransactionsLock.Unlock()
|
||||
|
||||
log := vh.getLog(ctx).With().
|
||||
Str("verification_action", "accept verification").
|
||||
Stringer("transaction_id", txnID).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue