diff --git a/internal/nodes/api_stream.go b/internal/nodes/api_stream.go index 0d083a5..f49b8aa 100644 --- a/internal/nodes/api_stream.go +++ b/internal/nodes/api_stream.go @@ -76,6 +76,9 @@ func (this *APIStream) loop() error { nodeStream, err := rpcClient.NodeRPC().NodeStream(ctx) if err != nil { + if this.isQuiting { + return nil + } return errors.Wrap(err) } this.stream = nodeStream