Commit 8da91c8a authored by protolambda's avatar protolambda

op-node: close p2p sync client

parent 62dffcc4
......@@ -184,8 +184,11 @@ func (n *NodeP2P) Close() error {
if err := n.host.Close(); err != nil {
result = multierror.Append(result, fmt.Errorf("failed to close p2p host cleanly: %w", err))
}
// TODO close sync loop
if n.syncCl != nil {
if err := n.syncCl.Close(); err != nil {
result = multierror.Append(result, fmt.Errorf("failed to close p2p sync client cleanly: %w", err))
}
}
}
return result.ErrorOrNil()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment