Skip to content

Commit

Permalink
splice: (todo del) channeld whitespace fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ddustin committed Jan 18, 2023
1 parent e2547e6 commit e6b4ab3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions channeld/channeld.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,18 +283,16 @@ static void end_stfu_mode(struct peer *peer)

static void maybe_send_stfu(struct peer *peer)
{
if (!peer->stfu) {
if (!peer->stfu)
return;
}

if (!peer->stfu_sent[LOCAL] && !pending_updates(peer->channel, LOCAL, false)) {
status_debug("Sending peer that we want to STFU.");
u8 *msg = towire_stfu(NULL, &peer->channel_id,
peer->stfu_initiator == LOCAL);
peer_write(peer->pps, take(msg));
peer->stfu_sent[LOCAL] = true;
}
else if(pending_updates(peer->channel, LOCAL, false)) {
} else if(pending_updates(peer->channel, LOCAL, false)) {
status_info("Pending updates prevent us from STFU mode at this time.");
}

Expand All @@ -303,9 +301,7 @@ static void maybe_send_stfu(struct peer *peer)
towire_channeld_dev_quiesce_reply(tmpctx));

peer->stfu_wait_single_msg = true;

if (peer->on_stfu_success) {

peer->on_stfu_success(peer);
peer->on_stfu_success = NULL;
}
Expand Down

0 comments on commit e6b4ab3

Please sign in to comment.