From 202c291c4a3821f282bb243c84044e1fd9a47154 Mon Sep 17 00:00:00 2001
From: yihuang <huang@crypto.com>
Date: Tue, 5 Sep 2023 15:16:35 +0800
Subject: [PATCH] remove duplicated app.Close call (#17619)

Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
---
 server/start.go | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/server/start.go b/server/start.go
index 28d43147e260..2e362f90303a 100644
--- a/server/start.go
+++ b/server/start.go
@@ -2,7 +2,6 @@ package server
 
 import (
 	"context"
-	"errors"
 	"fmt"
 	"io"
 	"net"
@@ -275,7 +274,7 @@ func startStandAlone(svrCtx *Context, app types.Application, opts StartCmdOption
 		// so we can gracefully stop the ABCI server.
 		<-ctx.Done()
 		svrCtx.Logger.Info("stopping the ABCI server...")
-		return errors.Join(svr.Stop(), app.Close())
+		return svr.Stop()
 	})
 
 	return g.Wait()
@@ -373,7 +372,6 @@ func startCmtNode(
 	cleanupFn = func() {
 		if tmNode != nil && tmNode.IsRunning() {
 			_ = tmNode.Stop()
-			_ = app.Close()
 		}
 	}