File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -605,9 +605,6 @@ impl Node {
605605
606606 log_info ! ( self . logger, "Shutting down LDK Node with node ID {}..." , self . node_id( ) ) ;
607607
608- // Stop any runtime-dependant chain sources.
609- self . chain_source . stop ( ) ;
610-
611608 // Stop background tasks.
612609 self . stop_sender
613610 . send ( ( ) )
@@ -630,13 +627,13 @@ impl Node {
630627 self . peer_manager . disconnect_all_peers ( ) ;
631628 log_debug ! ( self . logger, "Disconnected all network peers." ) ;
632629
630+ // Wait until non-cancellable background tasks (mod LDK's background processor) are done.
631+ self . runtime . wait_on_background_tasks ( ) ;
632+
633633 // Stop any runtime-dependant chain sources.
634634 self . chain_source . stop ( ) ;
635635 log_debug ! ( self . logger, "Stopped chain sources." ) ;
636636
637- // Wait until non-cancellable background tasks (mod LDK's background processor) are done.
638- self . runtime . wait_on_background_tasks ( ) ;
639-
640637 // Stop the background processor.
641638 self . background_processor_stop_sender
642639 . send ( ( ) )
You can’t perform that action at this time.
0 commit comments