mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 06:41:44 +01:00
options: Do not schedule a reconnect attempt with --no-reconnect
Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
parent
359c83b855
commit
249083bcc1
1 changed files with 5 additions and 0 deletions
|
@ -89,6 +89,11 @@ static void try_reconnect(struct peer *peer)
|
|||
|
||||
static void peer_reconnect(struct peer *peer)
|
||||
{
|
||||
/* Don't schedule an attempt if we disabled reconnections with
|
||||
* the `--no-reconnect` flag */
|
||||
if (peer->ld->config.no_reconnect)
|
||||
return;
|
||||
|
||||
new_reltimer(&peer->ld->timers,
|
||||
peer, peer->ld->config.poll_time,
|
||||
try_reconnect, peer);
|
||||
|
|
Loading…
Add table
Reference in a new issue