mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-05 23:08:01 +00:00
let tunnels finish thier tasks on stop
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user