diff --git a/changelog.md b/changelog.md index 3a5900afce..c301db1eb0 100644 --- a/changelog.md +++ b/changelog.md @@ -4,6 +4,7 @@ ### Fixes +- [#3831](https://github.com/ignite/cli/pull/3831) Correct ignite app gRPC server stop memory issue - [#3825](https://github.com/ignite/cli/pull/3825) Fix a minor Keplr type-checking bug in TS client ### Features diff --git a/ignite/services/plugin/protocol.go b/ignite/services/plugin/protocol.go index 6bb3e2431e..a372ae7abb 100644 --- a/ignite/services/plugin/protocol.go +++ b/ignite/services/plugin/protocol.go @@ -117,7 +117,13 @@ func (c client) startClientAPIServer(api ClientAPI) (uint32, func()) { return srv }) - return brokerID, func() { srv.Stop() } + stop := func() { + if srv != nil { + srv.Stop() + } + } + + return brokerID, stop } type server struct {