Skip to content

Commit

Permalink
Merge pull request #2049 from OffchainLabs/stop-execution-last
Browse files Browse the repository at this point in the history
Stop execution node after everything else
  • Loading branch information
joshuacolvin0 authored Jan 5, 2024
2 parents 6ee273e + f23e24d commit 8565937
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arbnode/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -862,9 +862,6 @@ func (n *Node) Start(ctx context.Context) error {
}

func (n *Node) StopAndWait() {
if n.Execution != nil {
n.Execution.StopAndWait()
}
if n.MaintenanceRunner != nil && n.MaintenanceRunner.Started() {
n.MaintenanceRunner.StopAndWait()
}
Expand Down Expand Up @@ -917,7 +914,10 @@ func (n *Node) StopAndWait() {
if n.DASLifecycleManager != nil {
n.DASLifecycleManager.StopAndWaitUntil(2 * time.Second)
}
if n.Execution != nil {
n.Execution.StopAndWait()
}
if err := n.Stack.Close(); err != nil {
log.Error("error on stak close", "err", err)
log.Error("error on stack close", "err", err)
}
}

0 comments on commit 8565937

Please sign in to comment.