Skip to content

Commit c428c4c

Browse files
committed
Remove duplicate call to chain_source.stop()
This was introduced during a rebase. Here we simply drop the redundant call.
1 parent b755070 commit c428c4c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/lib.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff 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(())

0 commit comments

Comments
 (0)