diff --git a/src/routes.js b/src/routes.js index 23bf480c..2889a4fd 100644 --- a/src/routes.js +++ b/src/routes.js @@ -413,8 +413,9 @@ module.exports = ( setTimeout(async () => { try { const macaroonExists = await FS.access( - LightningServices.servicesData.macaroonPath + LightningServices.servicesConfig.macaroonPath ); + if (!macaroonExists) { return waitUntilFileExists(seconds + 1); }