let tunnels finish thier tasks on stop

This commit is contained in:
orignal
2026-09-12 15:46:10 -04:00
parent 3630a57054
commit 181027c3b0
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -218,6 +218,10 @@ namespace client
}
{
// let tunnels finish
LogPrint(eLogInfo, "Clients: Waiting for ", STOP_DESTINATIONS_TIMEOUT, "seconds");
std::this_thread::sleep_for (std::chrono::seconds (STOP_DESTINATIONS_TIMEOUT));
// stop destinations
LogPrint(eLogInfo, "Clients: Stopping Destinations");
std::lock_guard<std::mutex> lock(m_DestinationsMutex);
for (auto& it: m_Destinations)