mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-19 22:44:24 +00:00
light: correctly handle contexts (backport -> v0.34.x) (#6685)
This commit is contained in:
+1
-1
@@ -142,7 +142,7 @@ func StartTendermint(app abci.Application, opts ...func(*Options)) *nm.Node {
|
||||
// cleans up test/config files.
|
||||
func StopTendermint(node *nm.Node) {
|
||||
if err := node.Stop(); err != nil {
|
||||
node.Logger.Error("Error when tryint to stop node", "err", err)
|
||||
node.Logger.Error("Error when trying to stop node", "err", err)
|
||||
}
|
||||
node.Wait()
|
||||
os.RemoveAll(node.Config().RootDir)
|
||||
|
||||
Reference in New Issue
Block a user