File tree 1 file changed +2
-6
lines changed 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -283,18 +283,16 @@ static void end_stfu_mode(struct peer *peer)
283
283
284
284
static void maybe_send_stfu (struct peer * peer )
285
285
{
286
- if (!peer -> stfu ) {
286
+ if (!peer -> stfu )
287
287
return ;
288
- }
289
288
290
289
if (!peer -> stfu_sent [LOCAL ] && !pending_updates (peer -> channel , LOCAL , false)) {
291
290
status_debug ("Sending peer that we want to STFU." );
292
291
u8 * msg = towire_stfu (NULL , & peer -> channel_id ,
293
292
peer -> stfu_initiator == LOCAL );
294
293
peer_write (peer -> pps , take (msg ));
295
294
peer -> stfu_sent [LOCAL ] = true;
296
- }
297
- else if (pending_updates (peer -> channel , LOCAL , false)) {
295
+ } else if (pending_updates (peer -> channel , LOCAL , false)) {
298
296
status_info ("Pending updates prevent us from STFU mode at this time." );
299
297
}
300
298
@@ -303,9 +301,7 @@ static void maybe_send_stfu(struct peer *peer)
303
301
towire_channeld_dev_quiesce_reply (tmpctx ));
304
302
305
303
peer -> stfu_wait_single_msg = true;
306
-
307
304
if (peer -> on_stfu_success ) {
308
-
309
305
peer -> on_stfu_success (peer );
310
306
peer -> on_stfu_success = NULL ;
311
307
}
You can’t perform that action at this time.
0 commit comments