From 46e94259e87b9d54e9c5301f8c226176004eff56 Mon Sep 17 00:00:00 2001 From: rakshasa Date: Mon, 26 May 2025 14:42:44 +0200 Subject: [PATCH] Make sure threads are rejoined. --- src/control.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/control.cc b/src/control.cc index b5cf231e..c5b93483 100644 --- a/src/control.cc +++ b/src/control.cc @@ -140,7 +140,7 @@ Control::handle_shutdown() { if (!m_shutdownQuick) { if (worker_thread->is_active()) - worker_thread->stop_thread(); + worker_thread->stop_thread_wait(); torrent::connection_manager()->listen_close();