From af99f70e486bd2cd842c085cfe05117ba6f2c030 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hampus=20Sj=C3=B6berg?= Date: Fri, 28 Aug 2020 11:18:15 +0200 Subject: [PATCH] mobile: re-enitialize listeners with RecreateListeners --- lnrpc/Dockerfile | 2 +- mobile/bindings.go | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lnrpc/Dockerfile b/lnrpc/Dockerfile index abe38567..a0abd5e2 100644 --- a/lnrpc/Dockerfile +++ b/lnrpc/Dockerfile @@ -11,7 +11,7 @@ RUN apt-get update && apt-get install -y \ ARG PROTOC_GEN_VERSION ARG GRPC_GATEWAY_VERSION -ENV FALAFEL_VERSION="v0.8.1" +ENV FALAFEL_VERSION="v0.9.0" ENV GOCACHE=/tmp/build/.cache ENV GOMODCACHE=/tmp/build/.modcache diff --git a/mobile/bindings.go b/mobile/bindings.go index 2f769a25..4b714d37 100644 --- a/mobile/bindings.go +++ b/mobile/bindings.go @@ -31,6 +31,11 @@ var lndStarted int32 // current app directory in order to ensure lnd has the permissions needed to // write to it. func Start(extraArgs string, rpcReady Callback) { + // (Re-)initialize the in-mem gRPC listeners we're going to give to lnd. + // This is required each time lnd is started, because when lnd shuts + // down, the in-mem listeners are closed. + RecreateListeners() + // Split the argument string on "--" to get separated command line // arguments. var splitArgs []string