Skip to content

Commit 7e8d4fc

Browse files
committed
shut down watcher service before threads join
1 parent 128c0ac commit 7e8d4fc

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/maker/server.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,9 @@ pub fn start_maker_server(maker: Arc<Maker>) -> Result<(), MakerError> {
663663
}
664664

665665
log::info!("[{network_port}] Maker is shutting down.");
666+
667+
maker.watch_service.shutdown();
668+
666669
maker.thread_pool.join_all_threads()?;
667670

668671
log::info!("sync at:----Shutdown wallet----");

src/maker/server2.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,8 @@ pub fn start_maker_server_taproot(maker: Arc<Maker>) -> Result<(), MakerError> {
800800
maker.config.network_port
801801
);
802802

803+
maker.watch_service.shutdown();
804+
803805
// Join all threads
804806
maker.thread_pool.join_all_threads()?;
805807

0 commit comments

Comments
 (0)