Skip to content

Commit

Permalink
Adds machine's finalizer back
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoximenes committed Oct 30, 2024
1 parent 98ccb2d commit efc592f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions validator/server_arb/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit efc592f

Please sign in to comment.