From: valentinewallace Date: Fri, 6 Aug 2021 22:37:15 +0000 (-0400) Subject: Merge pull request #26 from TheBlueMatt/main X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-sample;a=commitdiff_plain;h=22fb5d92b9d3711f469cc4dd325981ba979340d5;hp=5de2381e960870d9b58960e1db79a0a899d68d01 Merge pull request #26 from TheBlueMatt/main Display our local balance in addition to the available-for-send balance --- diff --git a/src/main.rs b/src/main.rs index bfb586a..57f0bb2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -551,7 +551,7 @@ async fn start_ldk() { let persist_channel_manager_callback = move |node: &ChannelManager| FilesystemPersister::persist_manager(data_dir.clone(), &*node); // Step 17: Background Processing - BackgroundProcessor::start( + let background_processor = BackgroundProcessor::start( persist_channel_manager_callback, event_handler, chain_monitor.clone(), @@ -610,6 +610,9 @@ async fn start_ldk() { network, ) .await; + + // Stop the background processor. + background_processor.stop().unwrap(); } #[tokio::main]