mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-22 08:34:20 +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:
committed by
Rusty Russell
parent
359c83b855
commit
249083bcc1
@@ -89,6 +89,11 @@ static void try_reconnect(struct peer *peer)
|
|||||||
|
|
||||||
static void peer_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,
|
new_reltimer(&peer->ld->timers,
|
||||||
peer, peer->ld->config.poll_time,
|
peer, peer->ld->config.poll_time,
|
||||||
try_reconnect, peer);
|
try_reconnect, peer);
|
||||||
|
|||||||
Reference in New Issue
Block a user