From 5dbab3ae9927fa9cabaf608aeed7661a7a3c5d62 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Thu, 11 Sep 2025 14:46:21 +0300 Subject: [PATCH] crypto/machine: don't clear account on Destroy() --- crypto/machine.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/machine.go b/crypto/machine.go index eb238922..ab3e4591 100644 --- a/crypto/machine.go +++ b/crypto/machine.go @@ -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 {