remove duplicated app.Close call (#17619)
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
This commit is contained in:
parent
97661429e0
commit
202c291c4a
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user