From efc592f2c37029d55ab9f1686c3d0f9d996efab8 Mon Sep 17 00:00:00 2001 From: Diego Ximenes Date: Wed, 30 Oct 2024 15:18:09 -0300 Subject: [PATCH] Adds machine's finalizer back --- validator/server_arb/machine.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/validator/server_arb/machine.go b/validator/server_arb/machine.go index aa4ab85706..a9475c7f7c 100644 --- a/validator/server_arb/machine.go +++ b/validator/server_arb/machine.go @@ -68,6 +68,8 @@ func (m *ArbitratorMachine) Destroy() { if m.ptr != nil { C.arbitrator_free_machine(m.ptr) m.ptr = nil + // We no longer need a finalizer + runtime.SetFinalizer(m, nil) } resolverWithRefCounter, ok := preimageResolvers.Load(m.contextId) if ok {