Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit c2f20e3

Browse files
committed
Use LND_INIT_DELAY in electron.js
1 parent 619246f commit c2f20e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

public/electron.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const {
1212
MACAROONS_ENABLED,
1313
LND_PORT,
1414
LND_PEER_PORT,
15+
LND_INIT_DELAY,
1516
BTCD_MINING_ADDRESS,
1617
} = require('../src/config');
1718

@@ -196,7 +197,7 @@ app.on('quit', () => {
196197
app.setAsDefaultProtocolClient(PREFIX_NAME);
197198
app.on('open-url', async (event, url) => {
198199
while (!win) {
199-
await new Promise(resolve => setTimeout(resolve, 5000));
200+
await new Promise(resolve => setTimeout(resolve, LND_INIT_DELAY));
200201
}
201202
win && win.webContents.send('open-url', url);
202203
});

0 commit comments

Comments
 (0)