File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
lightning-background-processor/src Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -290,15 +290,16 @@ impl BackgroundProcessor {
290290 }
291291 }
292292
293+ // After we exit, ensure we persist the ChannelManager one final time - this avoids
294+ // some races where users quit while channel updates were in-flight, with
295+ // ChannelMonitor update(s) persisted without a corresponding ChannelManager update.
296+ persister. persist_manager ( & * channel_manager) ?;
297+
293298 // Persist NetworkGraph on exit
294299 if let Some ( ref handler) = net_graph_msg_handler {
295300 persister. persist_graph ( handler. network_graph ( ) ) ?;
296301 }
297-
298- // After we exit, ensure we persist the ChannelManager one final time - this avoids
299- // some races where users quit while channel updates were in-flight, with
300- // ChannelMonitor update(s) persisted without a corresponding ChannelManager update.
301- persister. persist_manager ( & * channel_manager)
302+ Ok ( ( ) )
302303 } ) ;
303304 Self { stop_thread : stop_thread_clone, thread_handle : Some ( handle) }
304305 }
You can’t perform that action at this time.
0 commit comments