crypto/machine: don't clear account on Destroy()
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run

This commit is contained in:
Tulir Asokan 2025-09-11 14:46:21 +03:00
commit 5dbab3ae99

View file

@ -177,7 +177,7 @@ func (mach *OlmMachine) Destroy() {
Str("account_ptr", fmt.Sprintf("%p", ptr.Val(mach.account).Internal)).
Msg("Destroying olm machine")
mach.cancelBackgroundCtx()
mach.account = nil
// TODO actually destroy something?
}
func (mach *OlmMachine) saveAccount(ctx context.Context) error {